답안 #614107

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
614107 2022-07-30T18:54:08 Z dxz05 분수 공원 (IOI21_parks) C++17
100 / 100
811 ms 56696 KB
#include "parks.h"
#include <bits/stdc++.h>

using namespace std;
#define MP make_pair
#define all(x) (x).begin(), (x).end()

struct dsu {
    vector<int> p, sz;
    dsu(int n) {
        p.assign(n, 0);
        sz.assign(n, 1);
        iota(p.begin(), p.end(), 0);
    }

    int find(int x) {
        return (x == p[x] ? x : p[x] = find(p[x]));
    }

    bool unite(int x, int y) {
        x = find(x);
        y = find(y);
        if (x == y) return false;
        if (sz[x] > sz[y]) swap(x, y);
        p[x] = y;
        sz[y] += sz[x];
        return true;
    }
};

int construct_roads(vector<int> x, vector<int> y) {
    int n = (int)x.size();
    if (n == 1) {
	    build({}, {}, {}, {});
        return 1;
    }

    map<pair<int, int>, int> id;
    set<pair<int, int>> benches;
    for (int i = 0; i < n; i++){
        id[MP(x[i], y[i])] = i;
        benches.insert(MP(x[i] - 1, y[i] - 1));
        benches.insert(MP(x[i] - 1, y[i] + 1));
        benches.insert(MP(x[i] + 1, y[i] - 1));
        benches.insert(MP(x[i] + 1, y[i] + 1));
    }

    vector<int> U, V, A, B;
    dsu d(n);
    
    for (pair<int, int> bench : benches){
        int a = bench.first, b = bench.second;
        
        int par = ((a - 1) / 2 + (b - 1) / 2) % 2;

        // cerr << a << ' ' << b << ' ' << par << endl;

        if (par){ // down, up
            int i = -1, j = -1;
            if (id.find(MP(a - 1, b - 1)) != id.end()) i = id[MP(a - 1, b - 1)];
            if (id.find(MP(a + 1, b - 1)) != id.end()) j = id[MP(a + 1, b - 1)];
            if (i != -1 && j != -1 && d.unite(i, j)){
                U.push_back(i);
                V.push_back(j);
                A.push_back(a);
                B.push_back(b);
                continue;                
            }

            i = -1, j = -1;
            if (id.find(MP(a - 1, b + 1)) != id.end()) i = id[MP(a - 1, b + 1)];
            if (id.find(MP(a + 1, b + 1)) != id.end()) j = id[MP(a + 1, b + 1)];
            if (i != -1 && j != -1 && d.unite(i, j)) {
                U.push_back(i);
                V.push_back(j);
                A.push_back(a);
                B.push_back(b);
                continue;
            }

        } else { // left, right
            int i = -1, j = -1;
            if (id.find(MP(a - 1, b - 1)) != id.end()) i = id[MP(a - 1, b - 1)];
            if (id.find(MP(a - 1, b + 1)) != id.end()) j = id[MP(a - 1, b + 1)];
            if (i != -1 && j != -1 && d.unite(i, j)) {
                U.push_back(i);
                V.push_back(j);
                A.push_back(a);
                B.push_back(b);
                continue;
            }

            i = -1, j = -1;
            if (id.find(MP(a + 1, b - 1)) != id.end()) i = id[MP(a + 1, b - 1)];
            if (id.find(MP(a + 1, b + 1)) != id.end()) j = id[MP(a + 1, b + 1)];
            if (i != -1 && j != -1 && d.unite(i, j)) {
                U.push_back(i);
                V.push_back(j);
                A.push_back(a);
                B.push_back(b);
                continue;
            }
        }

    }

    if ((int)U.size() == n - 1){
        build(U, V, A, B);
        return 1;
    }
    
    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 296 KB Output is correct
3 Correct 1 ms 304 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 297 ms 23620 KB Output is correct
10 Correct 24 ms 2900 KB Output is correct
11 Correct 123 ms 12972 KB Output is correct
12 Correct 27 ms 4000 KB Output is correct
13 Correct 82 ms 9448 KB Output is correct
14 Correct 2 ms 468 KB Output is correct
15 Correct 3 ms 692 KB Output is correct
16 Correct 299 ms 23476 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 296 KB Output is correct
3 Correct 1 ms 304 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 297 ms 23620 KB Output is correct
10 Correct 24 ms 2900 KB Output is correct
11 Correct 123 ms 12972 KB Output is correct
12 Correct 27 ms 4000 KB Output is correct
13 Correct 82 ms 9448 KB Output is correct
14 Correct 2 ms 468 KB Output is correct
15 Correct 3 ms 692 KB Output is correct
16 Correct 299 ms 23476 KB Output is correct
17 Correct 1 ms 212 KB Output is correct
18 Correct 1 ms 212 KB Output is correct
19 Correct 0 ms 212 KB Output is correct
20 Correct 0 ms 212 KB Output is correct
21 Correct 1 ms 300 KB Output is correct
22 Correct 1 ms 212 KB Output is correct
23 Correct 749 ms 41584 KB Output is correct
24 Correct 1 ms 212 KB Output is correct
25 Correct 2 ms 564 KB Output is correct
26 Correct 4 ms 824 KB Output is correct
27 Correct 6 ms 980 KB Output is correct
28 Correct 205 ms 17208 KB Output is correct
29 Correct 398 ms 25192 KB Output is correct
30 Correct 581 ms 33352 KB Output is correct
31 Correct 709 ms 41584 KB Output is correct
32 Correct 1 ms 212 KB Output is correct
33 Correct 1 ms 304 KB Output is correct
34 Correct 1 ms 212 KB Output is correct
35 Correct 0 ms 212 KB Output is correct
36 Correct 1 ms 212 KB Output is correct
37 Correct 0 ms 212 KB Output is correct
38 Correct 0 ms 212 KB Output is correct
39 Correct 0 ms 212 KB Output is correct
40 Correct 1 ms 212 KB Output is correct
41 Correct 1 ms 296 KB Output is correct
42 Correct 0 ms 300 KB Output is correct
43 Correct 3 ms 692 KB Output is correct
44 Correct 5 ms 888 KB Output is correct
45 Correct 347 ms 23556 KB Output is correct
46 Correct 548 ms 33656 KB Output is correct
47 Correct 516 ms 33700 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 296 KB Output is correct
3 Correct 1 ms 304 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 297 ms 23620 KB Output is correct
10 Correct 24 ms 2900 KB Output is correct
11 Correct 123 ms 12972 KB Output is correct
12 Correct 27 ms 4000 KB Output is correct
13 Correct 82 ms 9448 KB Output is correct
14 Correct 2 ms 468 KB Output is correct
15 Correct 3 ms 692 KB Output is correct
16 Correct 299 ms 23476 KB Output is correct
17 Correct 1 ms 212 KB Output is correct
18 Correct 1 ms 212 KB Output is correct
19 Correct 0 ms 212 KB Output is correct
20 Correct 0 ms 212 KB Output is correct
21 Correct 1 ms 300 KB Output is correct
22 Correct 1 ms 212 KB Output is correct
23 Correct 749 ms 41584 KB Output is correct
24 Correct 1 ms 212 KB Output is correct
25 Correct 2 ms 564 KB Output is correct
26 Correct 4 ms 824 KB Output is correct
27 Correct 6 ms 980 KB Output is correct
28 Correct 205 ms 17208 KB Output is correct
29 Correct 398 ms 25192 KB Output is correct
30 Correct 581 ms 33352 KB Output is correct
31 Correct 709 ms 41584 KB Output is correct
32 Correct 1 ms 212 KB Output is correct
33 Correct 1 ms 304 KB Output is correct
34 Correct 1 ms 212 KB Output is correct
35 Correct 0 ms 212 KB Output is correct
36 Correct 1 ms 212 KB Output is correct
37 Correct 0 ms 212 KB Output is correct
38 Correct 0 ms 212 KB Output is correct
39 Correct 0 ms 212 KB Output is correct
40 Correct 1 ms 212 KB Output is correct
41 Correct 1 ms 296 KB Output is correct
42 Correct 0 ms 300 KB Output is correct
43 Correct 3 ms 692 KB Output is correct
44 Correct 5 ms 888 KB Output is correct
45 Correct 347 ms 23556 KB Output is correct
46 Correct 548 ms 33656 KB Output is correct
47 Correct 516 ms 33700 KB Output is correct
48 Correct 0 ms 212 KB Output is correct
49 Correct 1 ms 212 KB Output is correct
50 Correct 1 ms 212 KB Output is correct
51 Correct 0 ms 304 KB Output is correct
52 Correct 1 ms 212 KB Output is correct
53 Correct 1 ms 304 KB Output is correct
54 Correct 1 ms 296 KB Output is correct
55 Correct 674 ms 39988 KB Output is correct
56 Correct 1 ms 212 KB Output is correct
57 Correct 4 ms 696 KB Output is correct
58 Correct 13 ms 1620 KB Output is correct
59 Correct 15 ms 2184 KB Output is correct
60 Correct 264 ms 20356 KB Output is correct
61 Correct 410 ms 27240 KB Output is correct
62 Correct 539 ms 33312 KB Output is correct
63 Correct 680 ms 40096 KB Output is correct
64 Correct 1 ms 212 KB Output is correct
65 Correct 1 ms 212 KB Output is correct
66 Correct 1 ms 212 KB Output is correct
67 Correct 706 ms 46268 KB Output is correct
68 Correct 701 ms 46336 KB Output is correct
69 Correct 752 ms 46368 KB Output is correct
70 Correct 7 ms 1108 KB Output is correct
71 Correct 16 ms 1956 KB Output is correct
72 Correct 338 ms 23044 KB Output is correct
73 Correct 578 ms 34368 KB Output is correct
74 Correct 790 ms 45336 KB Output is correct
75 Correct 735 ms 42816 KB Output is correct
76 Correct 715 ms 46352 KB Output is correct
77 Correct 8 ms 1236 KB Output is correct
78 Correct 18 ms 2184 KB Output is correct
79 Correct 318 ms 22420 KB Output is correct
80 Correct 517 ms 33420 KB Output is correct
81 Correct 745 ms 44164 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 296 KB Output is correct
3 Correct 1 ms 304 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 297 ms 23620 KB Output is correct
10 Correct 24 ms 2900 KB Output is correct
11 Correct 123 ms 12972 KB Output is correct
12 Correct 27 ms 4000 KB Output is correct
13 Correct 82 ms 9448 KB Output is correct
14 Correct 2 ms 468 KB Output is correct
15 Correct 3 ms 692 KB Output is correct
16 Correct 299 ms 23476 KB Output is correct
17 Correct 1 ms 212 KB Output is correct
18 Correct 0 ms 212 KB Output is correct
19 Correct 1 ms 212 KB Output is correct
20 Correct 693 ms 46360 KB Output is correct
21 Correct 733 ms 48108 KB Output is correct
22 Correct 716 ms 48304 KB Output is correct
23 Correct 578 ms 40728 KB Output is correct
24 Correct 722 ms 56696 KB Output is correct
25 Correct 736 ms 41240 KB Output is correct
26 Correct 617 ms 41332 KB Output is correct
27 Correct 697 ms 47492 KB Output is correct
28 Correct 672 ms 47384 KB Output is correct
29 Correct 765 ms 47496 KB Output is correct
30 Correct 790 ms 47524 KB Output is correct
31 Correct 1 ms 300 KB Output is correct
32 Correct 32 ms 3888 KB Output is correct
33 Correct 310 ms 24260 KB Output is correct
34 Correct 707 ms 48420 KB Output is correct
35 Correct 18 ms 2380 KB Output is correct
36 Correct 111 ms 10088 KB Output is correct
37 Correct 284 ms 19740 KB Output is correct
38 Correct 247 ms 18484 KB Output is correct
39 Correct 344 ms 25044 KB Output is correct
40 Correct 471 ms 31984 KB Output is correct
41 Correct 595 ms 38576 KB Output is correct
42 Correct 747 ms 45344 KB Output is correct
43 Correct 1 ms 212 KB Output is correct
44 Correct 1 ms 212 KB Output is correct
45 Correct 0 ms 212 KB Output is correct
46 Correct 1 ms 292 KB Output is correct
47 Correct 1 ms 300 KB Output is correct
48 Correct 1 ms 300 KB Output is correct
49 Correct 0 ms 212 KB Output is correct
50 Correct 0 ms 304 KB Output is correct
51 Correct 0 ms 212 KB Output is correct
52 Correct 1 ms 296 KB Output is correct
53 Correct 1 ms 212 KB Output is correct
54 Correct 3 ms 596 KB Output is correct
55 Correct 5 ms 852 KB Output is correct
56 Correct 310 ms 23984 KB Output is correct
57 Correct 504 ms 34484 KB Output is correct
58 Correct 500 ms 34556 KB Output is correct
59 Correct 1 ms 212 KB Output is correct
60 Correct 1 ms 340 KB Output is correct
61 Correct 0 ms 296 KB Output is correct
62 Correct 694 ms 47580 KB Output is correct
63 Correct 694 ms 47452 KB Output is correct
64 Correct 707 ms 47176 KB Output is correct
65 Correct 7 ms 1128 KB Output is correct
66 Correct 14 ms 1880 KB Output is correct
67 Correct 315 ms 23420 KB Output is correct
68 Correct 517 ms 35064 KB Output is correct
69 Correct 747 ms 46580 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 296 KB Output is correct
3 Correct 1 ms 304 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 297 ms 23620 KB Output is correct
10 Correct 24 ms 2900 KB Output is correct
11 Correct 123 ms 12972 KB Output is correct
12 Correct 27 ms 4000 KB Output is correct
13 Correct 82 ms 9448 KB Output is correct
14 Correct 2 ms 468 KB Output is correct
15 Correct 3 ms 692 KB Output is correct
16 Correct 299 ms 23476 KB Output is correct
17 Correct 703 ms 46188 KB Output is correct
18 Correct 703 ms 46232 KB Output is correct
19 Correct 783 ms 46220 KB Output is correct
20 Correct 779 ms 39312 KB Output is correct
21 Correct 749 ms 38832 KB Output is correct
22 Correct 1 ms 212 KB Output is correct
23 Correct 80 ms 7716 KB Output is correct
24 Correct 39 ms 4176 KB Output is correct
25 Correct 188 ms 13608 KB Output is correct
26 Correct 395 ms 22664 KB Output is correct
27 Correct 346 ms 21892 KB Output is correct
28 Correct 447 ms 27544 KB Output is correct
29 Correct 563 ms 32900 KB Output is correct
30 Correct 679 ms 37940 KB Output is correct
31 Correct 811 ms 43480 KB Output is correct
32 Correct 799 ms 43692 KB Output is correct
33 Correct 758 ms 47680 KB Output is correct
34 Correct 8 ms 1236 KB Output is correct
35 Correct 16 ms 2132 KB Output is correct
36 Correct 298 ms 22804 KB Output is correct
37 Correct 513 ms 34016 KB Output is correct
38 Correct 730 ms 45228 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 296 KB Output is correct
3 Correct 1 ms 304 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 297 ms 23620 KB Output is correct
10 Correct 24 ms 2900 KB Output is correct
11 Correct 123 ms 12972 KB Output is correct
12 Correct 27 ms 4000 KB Output is correct
13 Correct 82 ms 9448 KB Output is correct
14 Correct 2 ms 468 KB Output is correct
15 Correct 3 ms 692 KB Output is correct
16 Correct 299 ms 23476 KB Output is correct
17 Correct 1 ms 212 KB Output is correct
18 Correct 1 ms 212 KB Output is correct
19 Correct 0 ms 212 KB Output is correct
20 Correct 0 ms 212 KB Output is correct
21 Correct 1 ms 300 KB Output is correct
22 Correct 1 ms 212 KB Output is correct
23 Correct 749 ms 41584 KB Output is correct
24 Correct 1 ms 212 KB Output is correct
25 Correct 2 ms 564 KB Output is correct
26 Correct 4 ms 824 KB Output is correct
27 Correct 6 ms 980 KB Output is correct
28 Correct 205 ms 17208 KB Output is correct
29 Correct 398 ms 25192 KB Output is correct
30 Correct 581 ms 33352 KB Output is correct
31 Correct 709 ms 41584 KB Output is correct
32 Correct 1 ms 212 KB Output is correct
33 Correct 1 ms 304 KB Output is correct
34 Correct 1 ms 212 KB Output is correct
35 Correct 0 ms 212 KB Output is correct
36 Correct 1 ms 212 KB Output is correct
37 Correct 0 ms 212 KB Output is correct
38 Correct 0 ms 212 KB Output is correct
39 Correct 0 ms 212 KB Output is correct
40 Correct 1 ms 212 KB Output is correct
41 Correct 1 ms 296 KB Output is correct
42 Correct 0 ms 300 KB Output is correct
43 Correct 3 ms 692 KB Output is correct
44 Correct 5 ms 888 KB Output is correct
45 Correct 347 ms 23556 KB Output is correct
46 Correct 548 ms 33656 KB Output is correct
47 Correct 516 ms 33700 KB Output is correct
48 Correct 0 ms 212 KB Output is correct
49 Correct 1 ms 212 KB Output is correct
50 Correct 1 ms 212 KB Output is correct
51 Correct 0 ms 304 KB Output is correct
52 Correct 1 ms 212 KB Output is correct
53 Correct 1 ms 304 KB Output is correct
54 Correct 1 ms 296 KB Output is correct
55 Correct 674 ms 39988 KB Output is correct
56 Correct 1 ms 212 KB Output is correct
57 Correct 4 ms 696 KB Output is correct
58 Correct 13 ms 1620 KB Output is correct
59 Correct 15 ms 2184 KB Output is correct
60 Correct 264 ms 20356 KB Output is correct
61 Correct 410 ms 27240 KB Output is correct
62 Correct 539 ms 33312 KB Output is correct
63 Correct 680 ms 40096 KB Output is correct
64 Correct 1 ms 212 KB Output is correct
65 Correct 1 ms 212 KB Output is correct
66 Correct 1 ms 212 KB Output is correct
67 Correct 706 ms 46268 KB Output is correct
68 Correct 701 ms 46336 KB Output is correct
69 Correct 752 ms 46368 KB Output is correct
70 Correct 7 ms 1108 KB Output is correct
71 Correct 16 ms 1956 KB Output is correct
72 Correct 338 ms 23044 KB Output is correct
73 Correct 578 ms 34368 KB Output is correct
74 Correct 790 ms 45336 KB Output is correct
75 Correct 735 ms 42816 KB Output is correct
76 Correct 715 ms 46352 KB Output is correct
77 Correct 8 ms 1236 KB Output is correct
78 Correct 18 ms 2184 KB Output is correct
79 Correct 318 ms 22420 KB Output is correct
80 Correct 517 ms 33420 KB Output is correct
81 Correct 745 ms 44164 KB Output is correct
82 Correct 1 ms 212 KB Output is correct
83 Correct 0 ms 212 KB Output is correct
84 Correct 1 ms 212 KB Output is correct
85 Correct 693 ms 46360 KB Output is correct
86 Correct 733 ms 48108 KB Output is correct
87 Correct 716 ms 48304 KB Output is correct
88 Correct 578 ms 40728 KB Output is correct
89 Correct 722 ms 56696 KB Output is correct
90 Correct 736 ms 41240 KB Output is correct
91 Correct 617 ms 41332 KB Output is correct
92 Correct 697 ms 47492 KB Output is correct
93 Correct 672 ms 47384 KB Output is correct
94 Correct 765 ms 47496 KB Output is correct
95 Correct 790 ms 47524 KB Output is correct
96 Correct 1 ms 300 KB Output is correct
97 Correct 32 ms 3888 KB Output is correct
98 Correct 310 ms 24260 KB Output is correct
99 Correct 707 ms 48420 KB Output is correct
100 Correct 18 ms 2380 KB Output is correct
101 Correct 111 ms 10088 KB Output is correct
102 Correct 284 ms 19740 KB Output is correct
103 Correct 247 ms 18484 KB Output is correct
104 Correct 344 ms 25044 KB Output is correct
105 Correct 471 ms 31984 KB Output is correct
106 Correct 595 ms 38576 KB Output is correct
107 Correct 747 ms 45344 KB Output is correct
108 Correct 1 ms 212 KB Output is correct
109 Correct 1 ms 212 KB Output is correct
110 Correct 0 ms 212 KB Output is correct
111 Correct 1 ms 292 KB Output is correct
112 Correct 1 ms 300 KB Output is correct
113 Correct 1 ms 300 KB Output is correct
114 Correct 0 ms 212 KB Output is correct
115 Correct 0 ms 304 KB Output is correct
116 Correct 0 ms 212 KB Output is correct
117 Correct 1 ms 296 KB Output is correct
118 Correct 1 ms 212 KB Output is correct
119 Correct 3 ms 596 KB Output is correct
120 Correct 5 ms 852 KB Output is correct
121 Correct 310 ms 23984 KB Output is correct
122 Correct 504 ms 34484 KB Output is correct
123 Correct 500 ms 34556 KB Output is correct
124 Correct 1 ms 212 KB Output is correct
125 Correct 1 ms 340 KB Output is correct
126 Correct 0 ms 296 KB Output is correct
127 Correct 694 ms 47580 KB Output is correct
128 Correct 694 ms 47452 KB Output is correct
129 Correct 707 ms 47176 KB Output is correct
130 Correct 7 ms 1128 KB Output is correct
131 Correct 14 ms 1880 KB Output is correct
132 Correct 315 ms 23420 KB Output is correct
133 Correct 517 ms 35064 KB Output is correct
134 Correct 747 ms 46580 KB Output is correct
135 Correct 703 ms 46188 KB Output is correct
136 Correct 703 ms 46232 KB Output is correct
137 Correct 783 ms 46220 KB Output is correct
138 Correct 779 ms 39312 KB Output is correct
139 Correct 749 ms 38832 KB Output is correct
140 Correct 1 ms 212 KB Output is correct
141 Correct 80 ms 7716 KB Output is correct
142 Correct 39 ms 4176 KB Output is correct
143 Correct 188 ms 13608 KB Output is correct
144 Correct 395 ms 22664 KB Output is correct
145 Correct 346 ms 21892 KB Output is correct
146 Correct 447 ms 27544 KB Output is correct
147 Correct 563 ms 32900 KB Output is correct
148 Correct 679 ms 37940 KB Output is correct
149 Correct 811 ms 43480 KB Output is correct
150 Correct 799 ms 43692 KB Output is correct
151 Correct 758 ms 47680 KB Output is correct
152 Correct 8 ms 1236 KB Output is correct
153 Correct 16 ms 2132 KB Output is correct
154 Correct 298 ms 22804 KB Output is correct
155 Correct 513 ms 34016 KB Output is correct
156 Correct 730 ms 45228 KB Output is correct
157 Correct 0 ms 212 KB Output is correct
158 Correct 0 ms 212 KB Output is correct
159 Correct 1 ms 212 KB Output is correct
160 Correct 0 ms 212 KB Output is correct
161 Correct 607 ms 38544 KB Output is correct
162 Correct 698 ms 48332 KB Output is correct
163 Correct 695 ms 45296 KB Output is correct
164 Correct 687 ms 45140 KB Output is correct
165 Correct 654 ms 40740 KB Output is correct
166 Correct 679 ms 39024 KB Output is correct
167 Correct 125 ms 9792 KB Output is correct
168 Correct 51 ms 5412 KB Output is correct
169 Correct 205 ms 13628 KB Output is correct
170 Correct 472 ms 25196 KB Output is correct
171 Correct 684 ms 33280 KB Output is correct
172 Correct 285 ms 19760 KB Output is correct
173 Correct 373 ms 23696 KB Output is correct
174 Correct 465 ms 27420 KB Output is correct
175 Correct 537 ms 31176 KB Output is correct
176 Correct 674 ms 35148 KB Output is correct
177 Correct 699 ms 39064 KB Output is correct