Submission #464972

# Submission time Handle Problem Language Result Execution time Memory
464972 2021-08-14T18:19:40 Z peti1234 Fountain Parks (IOI21_parks) C++17
100 / 100
910 ms 55248 KB
#include <bits/stdc++.h>
#include "parks.h"
using namespace std;

/*
void build(vector<int> a, vector<int> b, vector<int> c, vector<int> d) {
    for (int i=0; i<a.size(); i++) {
        cout << a[i] << " " << b[i] << " " << c[i] << " " << d[i] << "\n";
    }
    return;
}
*/
const int c=200005;
int ki[c], n, cnt;
map<pair<int, int>, int> m;
set<pair<int, int> > s;
vector<int> ans[4];
int ert(int a, int b) {
    if (m.find({a, b})!=m.end()) {
        return m[{a, b}];
    }
    return 0;
}
int holvan(int a) {
    return (ki[a] ? ki[a]=holvan(ki[a]) : a);
}
void unio(int a, int b) {
    a=holvan(a), b=holvan(b);
    if (a!=b) {
        ki[a]=b;
        cnt++;
    }
}
void add(int a, int b, pair<int, int> c) {
    unio(a, b);
    ans[0].push_back(a-1), ans[1].push_back(b-1), ans[2].push_back(c.first), ans[3].push_back(c.second);
}

int construct_roads(vector<int> a, vector<int> b) {
    n=a.size();
    for (int i=0; i<n; i++) {
        int x=a[i], y=b[i];
        m[{x, y}]=i+1;
        s.insert({x-1, y-1}), s.insert({x-1, y+1}), s.insert({x+1, y-1}), s.insert({x+1, y+1});
    }
    for (auto p:s) {
        int x=p.first, y=p.second;
        int a=ert(x-1, y-1), b=ert(x-1, y+1), c=ert(x+1, y-1), d=ert(x+1, y+1), aa=0, bb=0;
        /*cout << x << " " << y << " " << a << " " << b << " " << c << " " << d << "\n";
        if (x==-1 && y==1) {
            cout << "fontos " << x+1 << " " << y+1 << " " << ert(x+1, y+1) << "\n";
        }*/
        bool s=(x+y)%4;

        if (s && !aa && a && b) aa=a, bb=b;
        if (s && !aa && c && d) aa=c, bb=d;

        if (!s && !aa && a && c) aa=a, bb=c;
        if (!s && !aa && b && d) aa=b, bb=d;

        if (aa) {
            add(aa, bb, p);
        }
    }
    if (cnt==n-1) {
        build(ans[0], ans[1], ans[2], ans[3]);
    }
    return (cnt==n-1);
}


/*

int main()
{
    int n;
    vector<int> a, b;
    cin >> n;
    for (int i=1; i<=n; i++) {
        int x, y;
        cin >> x >> y;
        a.push_back(x), b.push_back(y);
    }
    int x=construct_roads(a, b);
    cout << x << "\n";
    return 0;
}
*/
/*
2
0 0
0 2
*/
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 0 ms 204 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 1 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 307 ms 23468 KB Output is correct
10 Correct 23 ms 2764 KB Output is correct
11 Correct 157 ms 12792 KB Output is correct
12 Correct 35 ms 4036 KB Output is correct
13 Correct 99 ms 9480 KB Output is correct
14 Correct 2 ms 436 KB Output is correct
15 Correct 4 ms 616 KB Output is correct
16 Correct 339 ms 23496 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 0 ms 204 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 1 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 307 ms 23468 KB Output is correct
10 Correct 23 ms 2764 KB Output is correct
11 Correct 157 ms 12792 KB Output is correct
12 Correct 35 ms 4036 KB Output is correct
13 Correct 99 ms 9480 KB Output is correct
14 Correct 2 ms 436 KB Output is correct
15 Correct 4 ms 616 KB Output is correct
16 Correct 339 ms 23496 KB Output is correct
17 Correct 1 ms 204 KB Output is correct
18 Correct 1 ms 204 KB Output is correct
19 Correct 1 ms 300 KB Output is correct
20 Correct 1 ms 204 KB Output is correct
21 Correct 1 ms 204 KB Output is correct
22 Correct 1 ms 204 KB Output is correct
23 Correct 776 ms 43480 KB Output is correct
24 Correct 1 ms 204 KB Output is correct
25 Correct 3 ms 588 KB Output is correct
26 Correct 5 ms 844 KB Output is correct
27 Correct 7 ms 972 KB Output is correct
28 Correct 279 ms 17584 KB Output is correct
29 Correct 429 ms 26300 KB Output is correct
30 Correct 585 ms 34988 KB Output is correct
31 Correct 821 ms 43596 KB Output is correct
32 Correct 1 ms 204 KB Output is correct
33 Correct 1 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 1 ms 204 KB Output is correct
37 Correct 1 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 1 ms 204 KB Output is correct
41 Correct 0 ms 204 KB Output is correct
42 Correct 1 ms 204 KB Output is correct
43 Correct 4 ms 716 KB Output is correct
44 Correct 6 ms 844 KB Output is correct
45 Correct 347 ms 23596 KB Output is correct
46 Correct 547 ms 33916 KB Output is correct
47 Correct 558 ms 34068 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 0 ms 204 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 1 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 307 ms 23468 KB Output is correct
10 Correct 23 ms 2764 KB Output is correct
11 Correct 157 ms 12792 KB Output is correct
12 Correct 35 ms 4036 KB Output is correct
13 Correct 99 ms 9480 KB Output is correct
14 Correct 2 ms 436 KB Output is correct
15 Correct 4 ms 616 KB Output is correct
16 Correct 339 ms 23496 KB Output is correct
17 Correct 1 ms 204 KB Output is correct
18 Correct 1 ms 204 KB Output is correct
19 Correct 1 ms 300 KB Output is correct
20 Correct 1 ms 204 KB Output is correct
21 Correct 1 ms 204 KB Output is correct
22 Correct 1 ms 204 KB Output is correct
23 Correct 776 ms 43480 KB Output is correct
24 Correct 1 ms 204 KB Output is correct
25 Correct 3 ms 588 KB Output is correct
26 Correct 5 ms 844 KB Output is correct
27 Correct 7 ms 972 KB Output is correct
28 Correct 279 ms 17584 KB Output is correct
29 Correct 429 ms 26300 KB Output is correct
30 Correct 585 ms 34988 KB Output is correct
31 Correct 821 ms 43596 KB Output is correct
32 Correct 1 ms 204 KB Output is correct
33 Correct 1 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 1 ms 204 KB Output is correct
37 Correct 1 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 1 ms 204 KB Output is correct
41 Correct 0 ms 204 KB Output is correct
42 Correct 1 ms 204 KB Output is correct
43 Correct 4 ms 716 KB Output is correct
44 Correct 6 ms 844 KB Output is correct
45 Correct 347 ms 23596 KB Output is correct
46 Correct 547 ms 33916 KB Output is correct
47 Correct 558 ms 34068 KB Output is correct
48 Correct 0 ms 204 KB Output is correct
49 Correct 1 ms 204 KB Output is correct
50 Correct 1 ms 204 KB Output is correct
51 Correct 1 ms 204 KB Output is correct
52 Correct 0 ms 304 KB Output is correct
53 Correct 1 ms 204 KB Output is correct
54 Correct 1 ms 204 KB Output is correct
55 Correct 779 ms 41424 KB Output is correct
56 Correct 1 ms 304 KB Output is correct
57 Correct 4 ms 588 KB Output is correct
58 Correct 13 ms 1612 KB Output is correct
59 Correct 18 ms 2124 KB Output is correct
60 Correct 313 ms 20792 KB Output is correct
61 Correct 469 ms 27948 KB Output is correct
62 Correct 598 ms 34332 KB Output is correct
63 Correct 760 ms 41516 KB Output is correct
64 Correct 1 ms 204 KB Output is correct
65 Correct 0 ms 204 KB Output is correct
66 Correct 1 ms 204 KB Output is correct
67 Correct 757 ms 46708 KB Output is correct
68 Correct 793 ms 47516 KB Output is correct
69 Correct 763 ms 46876 KB Output is correct
70 Correct 10 ms 1120 KB Output is correct
71 Correct 16 ms 1868 KB Output is correct
72 Correct 363 ms 22992 KB Output is correct
73 Correct 627 ms 34612 KB Output is correct
74 Correct 813 ms 45728 KB Output is correct
75 Correct 786 ms 46052 KB Output is correct
76 Correct 763 ms 47448 KB Output is correct
77 Correct 10 ms 1228 KB Output is correct
78 Correct 18 ms 2160 KB Output is correct
79 Correct 365 ms 22808 KB Output is correct
80 Correct 624 ms 34264 KB Output is correct
81 Correct 816 ms 45464 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 0 ms 204 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 1 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 307 ms 23468 KB Output is correct
10 Correct 23 ms 2764 KB Output is correct
11 Correct 157 ms 12792 KB Output is correct
12 Correct 35 ms 4036 KB Output is correct
13 Correct 99 ms 9480 KB Output is correct
14 Correct 2 ms 436 KB Output is correct
15 Correct 4 ms 616 KB Output is correct
16 Correct 339 ms 23496 KB Output is correct
17 Correct 0 ms 204 KB Output is correct
18 Correct 1 ms 204 KB Output is correct
19 Correct 1 ms 304 KB Output is correct
20 Correct 768 ms 47924 KB Output is correct
21 Correct 794 ms 47564 KB Output is correct
22 Correct 782 ms 47632 KB Output is correct
23 Correct 614 ms 40256 KB Output is correct
24 Correct 799 ms 55248 KB Output is correct
25 Correct 787 ms 40432 KB Output is correct
26 Correct 637 ms 40412 KB Output is correct
27 Correct 721 ms 46564 KB Output is correct
28 Correct 718 ms 46684 KB Output is correct
29 Correct 886 ms 46744 KB Output is correct
30 Correct 910 ms 46688 KB Output is correct
31 Correct 1 ms 204 KB Output is correct
32 Correct 37 ms 3848 KB Output is correct
33 Correct 331 ms 23372 KB Output is correct
34 Correct 755 ms 48064 KB Output is correct
35 Correct 22 ms 2336 KB Output is correct
36 Correct 147 ms 9892 KB Output is correct
37 Correct 328 ms 19380 KB Output is correct
38 Correct 263 ms 18368 KB Output is correct
39 Correct 411 ms 24928 KB Output is correct
40 Correct 523 ms 31572 KB Output is correct
41 Correct 683 ms 38444 KB Output is correct
42 Correct 827 ms 45044 KB Output is correct
43 Correct 1 ms 204 KB Output is correct
44 Correct 1 ms 204 KB Output is correct
45 Correct 1 ms 204 KB Output is correct
46 Correct 1 ms 204 KB Output is correct
47 Correct 1 ms 204 KB Output is correct
48 Correct 1 ms 204 KB Output is correct
49 Correct 1 ms 204 KB Output is correct
50 Correct 1 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 1 ms 204 KB Output is correct
54 Correct 4 ms 716 KB Output is correct
55 Correct 8 ms 844 KB Output is correct
56 Correct 408 ms 23684 KB Output is correct
57 Correct 560 ms 33984 KB Output is correct
58 Correct 555 ms 33916 KB Output is correct
59 Correct 1 ms 204 KB Output is correct
60 Correct 1 ms 204 KB Output is correct
61 Correct 1 ms 204 KB Output is correct
62 Correct 803 ms 46676 KB Output is correct
63 Correct 853 ms 47484 KB Output is correct
64 Correct 748 ms 46940 KB Output is correct
65 Correct 8 ms 1100 KB Output is correct
66 Correct 16 ms 1932 KB Output is correct
67 Correct 356 ms 22980 KB Output is correct
68 Correct 590 ms 34428 KB Output is correct
69 Correct 870 ms 45920 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 0 ms 204 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 1 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 307 ms 23468 KB Output is correct
10 Correct 23 ms 2764 KB Output is correct
11 Correct 157 ms 12792 KB Output is correct
12 Correct 35 ms 4036 KB Output is correct
13 Correct 99 ms 9480 KB Output is correct
14 Correct 2 ms 436 KB Output is correct
15 Correct 4 ms 616 KB Output is correct
16 Correct 339 ms 23496 KB Output is correct
17 Correct 835 ms 47576 KB Output is correct
18 Correct 803 ms 47536 KB Output is correct
19 Correct 873 ms 47604 KB Output is correct
20 Correct 825 ms 42632 KB Output is correct
21 Correct 724 ms 40112 KB Output is correct
22 Correct 0 ms 204 KB Output is correct
23 Correct 87 ms 7820 KB Output is correct
24 Correct 42 ms 4244 KB Output is correct
25 Correct 185 ms 13268 KB Output is correct
26 Correct 417 ms 22840 KB Output is correct
27 Correct 347 ms 22852 KB Output is correct
28 Correct 476 ms 28864 KB Output is correct
29 Correct 601 ms 34588 KB Output is correct
30 Correct 687 ms 39516 KB Output is correct
31 Correct 827 ms 45504 KB Output is correct
32 Correct 793 ms 45968 KB Output is correct
33 Correct 760 ms 47456 KB Output is correct
34 Correct 11 ms 1228 KB Output is correct
35 Correct 18 ms 2124 KB Output is correct
36 Correct 389 ms 22828 KB Output is correct
37 Correct 632 ms 34292 KB Output is correct
38 Correct 832 ms 45400 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 0 ms 204 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 1 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 307 ms 23468 KB Output is correct
10 Correct 23 ms 2764 KB Output is correct
11 Correct 157 ms 12792 KB Output is correct
12 Correct 35 ms 4036 KB Output is correct
13 Correct 99 ms 9480 KB Output is correct
14 Correct 2 ms 436 KB Output is correct
15 Correct 4 ms 616 KB Output is correct
16 Correct 339 ms 23496 KB Output is correct
17 Correct 1 ms 204 KB Output is correct
18 Correct 1 ms 204 KB Output is correct
19 Correct 1 ms 300 KB Output is correct
20 Correct 1 ms 204 KB Output is correct
21 Correct 1 ms 204 KB Output is correct
22 Correct 1 ms 204 KB Output is correct
23 Correct 776 ms 43480 KB Output is correct
24 Correct 1 ms 204 KB Output is correct
25 Correct 3 ms 588 KB Output is correct
26 Correct 5 ms 844 KB Output is correct
27 Correct 7 ms 972 KB Output is correct
28 Correct 279 ms 17584 KB Output is correct
29 Correct 429 ms 26300 KB Output is correct
30 Correct 585 ms 34988 KB Output is correct
31 Correct 821 ms 43596 KB Output is correct
32 Correct 1 ms 204 KB Output is correct
33 Correct 1 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 1 ms 204 KB Output is correct
37 Correct 1 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 1 ms 204 KB Output is correct
41 Correct 0 ms 204 KB Output is correct
42 Correct 1 ms 204 KB Output is correct
43 Correct 4 ms 716 KB Output is correct
44 Correct 6 ms 844 KB Output is correct
45 Correct 347 ms 23596 KB Output is correct
46 Correct 547 ms 33916 KB Output is correct
47 Correct 558 ms 34068 KB Output is correct
48 Correct 0 ms 204 KB Output is correct
49 Correct 1 ms 204 KB Output is correct
50 Correct 1 ms 204 KB Output is correct
51 Correct 1 ms 204 KB Output is correct
52 Correct 0 ms 304 KB Output is correct
53 Correct 1 ms 204 KB Output is correct
54 Correct 1 ms 204 KB Output is correct
55 Correct 779 ms 41424 KB Output is correct
56 Correct 1 ms 304 KB Output is correct
57 Correct 4 ms 588 KB Output is correct
58 Correct 13 ms 1612 KB Output is correct
59 Correct 18 ms 2124 KB Output is correct
60 Correct 313 ms 20792 KB Output is correct
61 Correct 469 ms 27948 KB Output is correct
62 Correct 598 ms 34332 KB Output is correct
63 Correct 760 ms 41516 KB Output is correct
64 Correct 1 ms 204 KB Output is correct
65 Correct 0 ms 204 KB Output is correct
66 Correct 1 ms 204 KB Output is correct
67 Correct 757 ms 46708 KB Output is correct
68 Correct 793 ms 47516 KB Output is correct
69 Correct 763 ms 46876 KB Output is correct
70 Correct 10 ms 1120 KB Output is correct
71 Correct 16 ms 1868 KB Output is correct
72 Correct 363 ms 22992 KB Output is correct
73 Correct 627 ms 34612 KB Output is correct
74 Correct 813 ms 45728 KB Output is correct
75 Correct 786 ms 46052 KB Output is correct
76 Correct 763 ms 47448 KB Output is correct
77 Correct 10 ms 1228 KB Output is correct
78 Correct 18 ms 2160 KB Output is correct
79 Correct 365 ms 22808 KB Output is correct
80 Correct 624 ms 34264 KB Output is correct
81 Correct 816 ms 45464 KB Output is correct
82 Correct 0 ms 204 KB Output is correct
83 Correct 1 ms 204 KB Output is correct
84 Correct 1 ms 304 KB Output is correct
85 Correct 768 ms 47924 KB Output is correct
86 Correct 794 ms 47564 KB Output is correct
87 Correct 782 ms 47632 KB Output is correct
88 Correct 614 ms 40256 KB Output is correct
89 Correct 799 ms 55248 KB Output is correct
90 Correct 787 ms 40432 KB Output is correct
91 Correct 637 ms 40412 KB Output is correct
92 Correct 721 ms 46564 KB Output is correct
93 Correct 718 ms 46684 KB Output is correct
94 Correct 886 ms 46744 KB Output is correct
95 Correct 910 ms 46688 KB Output is correct
96 Correct 1 ms 204 KB Output is correct
97 Correct 37 ms 3848 KB Output is correct
98 Correct 331 ms 23372 KB Output is correct
99 Correct 755 ms 48064 KB Output is correct
100 Correct 22 ms 2336 KB Output is correct
101 Correct 147 ms 9892 KB Output is correct
102 Correct 328 ms 19380 KB Output is correct
103 Correct 263 ms 18368 KB Output is correct
104 Correct 411 ms 24928 KB Output is correct
105 Correct 523 ms 31572 KB Output is correct
106 Correct 683 ms 38444 KB Output is correct
107 Correct 827 ms 45044 KB Output is correct
108 Correct 1 ms 204 KB Output is correct
109 Correct 1 ms 204 KB Output is correct
110 Correct 1 ms 204 KB Output is correct
111 Correct 1 ms 204 KB Output is correct
112 Correct 1 ms 204 KB Output is correct
113 Correct 1 ms 204 KB Output is correct
114 Correct 1 ms 204 KB Output is correct
115 Correct 1 ms 204 KB Output is correct
116 Correct 0 ms 204 KB Output is correct
117 Correct 0 ms 204 KB Output is correct
118 Correct 1 ms 204 KB Output is correct
119 Correct 4 ms 716 KB Output is correct
120 Correct 8 ms 844 KB Output is correct
121 Correct 408 ms 23684 KB Output is correct
122 Correct 560 ms 33984 KB Output is correct
123 Correct 555 ms 33916 KB Output is correct
124 Correct 1 ms 204 KB Output is correct
125 Correct 1 ms 204 KB Output is correct
126 Correct 1 ms 204 KB Output is correct
127 Correct 803 ms 46676 KB Output is correct
128 Correct 853 ms 47484 KB Output is correct
129 Correct 748 ms 46940 KB Output is correct
130 Correct 8 ms 1100 KB Output is correct
131 Correct 16 ms 1932 KB Output is correct
132 Correct 356 ms 22980 KB Output is correct
133 Correct 590 ms 34428 KB Output is correct
134 Correct 870 ms 45920 KB Output is correct
135 Correct 835 ms 47576 KB Output is correct
136 Correct 803 ms 47536 KB Output is correct
137 Correct 873 ms 47604 KB Output is correct
138 Correct 825 ms 42632 KB Output is correct
139 Correct 724 ms 40112 KB Output is correct
140 Correct 0 ms 204 KB Output is correct
141 Correct 87 ms 7820 KB Output is correct
142 Correct 42 ms 4244 KB Output is correct
143 Correct 185 ms 13268 KB Output is correct
144 Correct 417 ms 22840 KB Output is correct
145 Correct 347 ms 22852 KB Output is correct
146 Correct 476 ms 28864 KB Output is correct
147 Correct 601 ms 34588 KB Output is correct
148 Correct 687 ms 39516 KB Output is correct
149 Correct 827 ms 45504 KB Output is correct
150 Correct 793 ms 45968 KB Output is correct
151 Correct 760 ms 47456 KB Output is correct
152 Correct 11 ms 1228 KB Output is correct
153 Correct 18 ms 2124 KB Output is correct
154 Correct 389 ms 22828 KB Output is correct
155 Correct 632 ms 34292 KB Output is correct
156 Correct 832 ms 45400 KB Output is correct
157 Correct 1 ms 204 KB Output is correct
158 Correct 1 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 707 ms 37700 KB Output is correct
162 Correct 729 ms 48112 KB Output is correct
163 Correct 698 ms 44728 KB Output is correct
164 Correct 706 ms 44720 KB Output is correct
165 Correct 702 ms 40216 KB Output is correct
166 Correct 713 ms 38168 KB Output is correct
167 Correct 125 ms 9752 KB Output is correct
168 Correct 61 ms 5376 KB Output is correct
169 Correct 196 ms 13200 KB Output is correct
170 Correct 454 ms 24688 KB Output is correct
171 Correct 643 ms 32672 KB Output is correct
172 Correct 301 ms 19484 KB Output is correct
173 Correct 377 ms 23440 KB Output is correct
174 Correct 464 ms 27252 KB Output is correct
175 Correct 548 ms 30820 KB Output is correct
176 Correct 637 ms 34924 KB Output is correct
177 Correct 694 ms 38876 KB Output is correct