Submission #609754

# Submission time Handle Problem Language Result Execution time Memory
609754 2022-07-27T20:57:05 Z duality Fountain Parks (IOI21_parks) C++17
100 / 100
385 ms 29012 KB
#define DEBUG 0

#include <bits/stdc++.h>
using namespace std;

#if DEBUG
// basic debugging macros
int __i__,__j__;
#define printLine(l) for(__i__=0;__i__<l;__i__++){cout<<"-";}cout<<endl
#define printLine2(l,c) for(__i__=0;__i__<l;__i__++){cout<<c;}cout<<endl
#define printVar(n) cout<<#n<<": "<<n<<endl
#define printArr(a,l) cout<<#a<<": ";for(__i__=0;__i__<l;__i__++){cout<<a[__i__]<<" ";}cout<<endl
#define print2dArr(a,r,c) cout<<#a<<":\n";for(__i__=0;__i__<r;__i__++){for(__j__=0;__j__<c;__j__++){cout<<a[__i__][__j__]<<" ";}cout<<endl;}
#define print2dArr2(a,r,c,l) cout<<#a<<":\n";for(__i__=0;__i__<r;__i__++){for(__j__=0;__j__<c;__j__++){cout<<setw(l)<<setfill(' ')<<a[__i__][__j__]<<" ";}cout<<endl;}

// advanced debugging class
// debug 1,2,'A',"test";
class _Debug {
    public:
        template<typename T>
        _Debug& operator,(T val) {
            cout << val << endl;
            return *this;
        }
};
#define debug _Debug(),
#else
#define printLine(l)
#define printLine2(l,c)
#define printVar(n)
#define printArr(a,l)
#define print2dArr(a,r,c)
#define print2dArr2(a,r,c,l)
#define debug
#endif

// define
#define MAX_VAL 999999999
#define MAX_VAL_2 999999999999999999LL
#define EPS 1e-6
#define mp make_pair
#define pb push_back

// typedef
typedef unsigned int UI;
typedef long long int LLI;
typedef unsigned long long int ULLI;
typedef unsigned short int US;
typedef pair<int,int> pii;
typedef pair<LLI,LLI> plli;
typedef vector<int> vi;
typedef vector<LLI> vlli;
typedef vector<pii> vpii;
typedef vector<plli> vplli;

// ---------- END OF TEMPLATE ----------
#include "parks.h"

map<pii,int> M;
int parent[200000];
int find(int n) {
    if (parent[n] != n) parent[n] = find(parent[n]);
    return parent[n];
}
int construct_roads(vector<int> x,vector<int> y) {
    int i,n = x.size();
    vi u,v,a,b;
    for (i = 0; i < n; i++) M[mp(x[i],y[i])] = parent[i] = i;
    for (auto [p,i]: M) {
        if (((x[i]+y[i])/2) & 1) {
            if (M.count(mp(x[i]-2,y[i])) && (find(M[mp(x[i]-2,y[i])]) != find(i))) {
                u.pb(M[mp(x[i]-2,y[i])]),v.pb(i);
                parent[find(M[mp(x[i]-2,y[i])])] = find(i);
                a.pb(x[i]-1),b.pb(y[i]+1);
            }
            if (M.count(mp(x[i],y[i]-2)) && (find(M[mp(x[i],y[i]-2)]) != find(i))) {
                u.pb(M[mp(x[i],y[i]-2)]),v.pb(i);
                parent[find(M[mp(x[i],y[i]-2)])] = find(i);
                a.pb(x[i]-1),b.pb(y[i]-1);
            }
        }
        else {
            if (M.count(mp(x[i],y[i]-2)) && (find(M[mp(x[i],y[i]-2)]) != find(i))) {
                u.pb(M[mp(x[i],y[i]-2)]),v.pb(i);
                parent[find(M[mp(x[i],y[i]-2)])] = find(i);
                a.pb(x[i]+1),b.pb(y[i]-1);
            }
            if (M.count(mp(x[i]-2,y[i])) && (find(M[mp(x[i]-2,y[i])]) != find(i))) {
                u.pb(M[mp(x[i]-2,y[i])]),v.pb(i);
                parent[find(M[mp(x[i]-2,y[i])])] = find(i);
                a.pb(x[i]-1),b.pb(y[i]-1);
            }
        }
    }
    for (i = 0; i < n; i++) {
        if (find(i) != find(0)) return 0;
    }
    build(u,v,a,b);
    return 1;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 118 ms 14424 KB Output is correct
10 Correct 13 ms 1860 KB Output is correct
11 Correct 68 ms 8004 KB Output is correct
12 Correct 14 ms 2660 KB Output is correct
13 Correct 35 ms 5032 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 1 ms 468 KB Output is correct
16 Correct 115 ms 13836 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 118 ms 14424 KB Output is correct
10 Correct 13 ms 1860 KB Output is correct
11 Correct 68 ms 8004 KB Output is correct
12 Correct 14 ms 2660 KB Output is correct
13 Correct 35 ms 5032 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 1 ms 468 KB Output is correct
16 Correct 115 ms 13836 KB Output is correct
17 Correct 0 ms 212 KB Output is correct
18 Correct 0 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 212 KB Output is correct
22 Correct 1 ms 312 KB Output is correct
23 Correct 340 ms 27672 KB Output is correct
24 Correct 1 ms 212 KB Output is correct
25 Correct 2 ms 468 KB Output is correct
26 Correct 3 ms 596 KB Output is correct
27 Correct 3 ms 724 KB Output is correct
28 Correct 128 ms 11440 KB Output is correct
29 Correct 155 ms 16856 KB Output is correct
30 Correct 250 ms 22288 KB Output is correct
31 Correct 293 ms 27644 KB Output is correct
32 Correct 1 ms 212 KB Output is correct
33 Correct 1 ms 340 KB Output is correct
34 Correct 1 ms 212 KB Output is correct
35 Correct 1 ms 308 KB Output is correct
36 Correct 0 ms 212 KB Output is correct
37 Correct 0 ms 212 KB Output is correct
38 Correct 1 ms 312 KB Output is correct
39 Correct 0 ms 212 KB Output is correct
40 Correct 1 ms 224 KB Output is correct
41 Correct 0 ms 212 KB Output is correct
42 Correct 0 ms 212 KB Output is correct
43 Correct 2 ms 468 KB Output is correct
44 Correct 3 ms 580 KB Output is correct
45 Correct 133 ms 13904 KB Output is correct
46 Correct 200 ms 19864 KB Output is correct
47 Correct 208 ms 19540 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 118 ms 14424 KB Output is correct
10 Correct 13 ms 1860 KB Output is correct
11 Correct 68 ms 8004 KB Output is correct
12 Correct 14 ms 2660 KB Output is correct
13 Correct 35 ms 5032 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 1 ms 468 KB Output is correct
16 Correct 115 ms 13836 KB Output is correct
17 Correct 0 ms 212 KB Output is correct
18 Correct 0 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 212 KB Output is correct
22 Correct 1 ms 312 KB Output is correct
23 Correct 340 ms 27672 KB Output is correct
24 Correct 1 ms 212 KB Output is correct
25 Correct 2 ms 468 KB Output is correct
26 Correct 3 ms 596 KB Output is correct
27 Correct 3 ms 724 KB Output is correct
28 Correct 128 ms 11440 KB Output is correct
29 Correct 155 ms 16856 KB Output is correct
30 Correct 250 ms 22288 KB Output is correct
31 Correct 293 ms 27644 KB Output is correct
32 Correct 1 ms 212 KB Output is correct
33 Correct 1 ms 340 KB Output is correct
34 Correct 1 ms 212 KB Output is correct
35 Correct 1 ms 308 KB Output is correct
36 Correct 0 ms 212 KB Output is correct
37 Correct 0 ms 212 KB Output is correct
38 Correct 1 ms 312 KB Output is correct
39 Correct 0 ms 212 KB Output is correct
40 Correct 1 ms 224 KB Output is correct
41 Correct 0 ms 212 KB Output is correct
42 Correct 0 ms 212 KB Output is correct
43 Correct 2 ms 468 KB Output is correct
44 Correct 3 ms 580 KB Output is correct
45 Correct 133 ms 13904 KB Output is correct
46 Correct 200 ms 19864 KB Output is correct
47 Correct 208 ms 19540 KB Output is correct
48 Correct 0 ms 212 KB Output is correct
49 Correct 0 ms 212 KB Output is correct
50 Correct 0 ms 308 KB Output is correct
51 Correct 1 ms 212 KB Output is correct
52 Correct 0 ms 304 KB Output is correct
53 Correct 0 ms 212 KB Output is correct
54 Correct 0 ms 212 KB Output is correct
55 Correct 311 ms 27328 KB Output is correct
56 Correct 0 ms 212 KB Output is correct
57 Correct 2 ms 596 KB Output is correct
58 Correct 6 ms 1236 KB Output is correct
59 Correct 8 ms 1492 KB Output is correct
60 Correct 130 ms 13972 KB Output is correct
61 Correct 194 ms 18720 KB Output is correct
62 Correct 238 ms 22804 KB Output is correct
63 Correct 312 ms 27432 KB Output is correct
64 Correct 1 ms 212 KB Output is correct
65 Correct 1 ms 312 KB Output is correct
66 Correct 0 ms 212 KB Output is correct
67 Correct 282 ms 27436 KB Output is correct
68 Correct 284 ms 27736 KB Output is correct
69 Correct 278 ms 27108 KB Output is correct
70 Correct 3 ms 724 KB Output is correct
71 Correct 7 ms 1116 KB Output is correct
72 Correct 138 ms 14004 KB Output is correct
73 Correct 230 ms 20576 KB Output is correct
74 Correct 313 ms 27060 KB Output is correct
75 Correct 299 ms 27488 KB Output is correct
76 Correct 274 ms 27808 KB Output is correct
77 Correct 4 ms 852 KB Output is correct
78 Correct 8 ms 1352 KB Output is correct
79 Correct 151 ms 13680 KB Output is correct
80 Correct 218 ms 20312 KB Output is correct
81 Correct 304 ms 27100 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 118 ms 14424 KB Output is correct
10 Correct 13 ms 1860 KB Output is correct
11 Correct 68 ms 8004 KB Output is correct
12 Correct 14 ms 2660 KB Output is correct
13 Correct 35 ms 5032 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 1 ms 468 KB Output is correct
16 Correct 115 ms 13836 KB Output is correct
17 Correct 0 ms 212 KB Output is correct
18 Correct 0 ms 212 KB Output is correct
19 Correct 0 ms 212 KB Output is correct
20 Correct 312 ms 26968 KB Output is correct
21 Correct 361 ms 26916 KB Output is correct
22 Correct 303 ms 26532 KB Output is correct
23 Correct 246 ms 23244 KB Output is correct
24 Correct 183 ms 16712 KB Output is correct
25 Correct 237 ms 19880 KB Output is correct
26 Correct 231 ms 19972 KB Output is correct
27 Correct 300 ms 26284 KB Output is correct
28 Correct 306 ms 26300 KB Output is correct
29 Correct 294 ms 26284 KB Output is correct
30 Correct 288 ms 26424 KB Output is correct
31 Correct 0 ms 212 KB Output is correct
32 Correct 19 ms 2464 KB Output is correct
33 Correct 68 ms 8396 KB Output is correct
34 Correct 307 ms 28172 KB Output is correct
35 Correct 9 ms 1364 KB Output is correct
36 Correct 48 ms 5372 KB Output is correct
37 Correct 109 ms 10124 KB Output is correct
38 Correct 106 ms 10804 KB Output is correct
39 Correct 165 ms 14652 KB Output is correct
40 Correct 203 ms 18640 KB Output is correct
41 Correct 251 ms 22424 KB Output is correct
42 Correct 310 ms 26208 KB Output is correct
43 Correct 0 ms 212 KB Output is correct
44 Correct 0 ms 212 KB Output is correct
45 Correct 0 ms 212 KB Output is correct
46 Correct 0 ms 212 KB Output is correct
47 Correct 0 ms 212 KB Output is correct
48 Correct 0 ms 212 KB Output is correct
49 Correct 0 ms 212 KB Output is correct
50 Correct 0 ms 212 KB Output is correct
51 Correct 0 ms 212 KB Output is correct
52 Correct 0 ms 212 KB Output is correct
53 Correct 0 ms 212 KB Output is correct
54 Correct 2 ms 468 KB Output is correct
55 Correct 2 ms 596 KB Output is correct
56 Correct 128 ms 13672 KB Output is correct
57 Correct 198 ms 19572 KB Output is correct
58 Correct 193 ms 19364 KB Output is correct
59 Correct 0 ms 212 KB Output is correct
60 Correct 0 ms 212 KB Output is correct
61 Correct 0 ms 212 KB Output is correct
62 Correct 281 ms 27056 KB Output is correct
63 Correct 273 ms 27412 KB Output is correct
64 Correct 304 ms 26684 KB Output is correct
65 Correct 3 ms 724 KB Output is correct
66 Correct 7 ms 1108 KB Output is correct
67 Correct 173 ms 13512 KB Output is correct
68 Correct 202 ms 20132 KB Output is correct
69 Correct 346 ms 26664 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 118 ms 14424 KB Output is correct
10 Correct 13 ms 1860 KB Output is correct
11 Correct 68 ms 8004 KB Output is correct
12 Correct 14 ms 2660 KB Output is correct
13 Correct 35 ms 5032 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 1 ms 468 KB Output is correct
16 Correct 115 ms 13836 KB Output is correct
17 Correct 331 ms 26992 KB Output is correct
18 Correct 302 ms 27320 KB Output is correct
19 Correct 313 ms 26796 KB Output is correct
20 Correct 289 ms 25728 KB Output is correct
21 Correct 285 ms 23020 KB Output is correct
22 Correct 0 ms 212 KB Output is correct
23 Correct 38 ms 4820 KB Output is correct
24 Correct 18 ms 2548 KB Output is correct
25 Correct 78 ms 7496 KB Output is correct
26 Correct 149 ms 12208 KB Output is correct
27 Correct 136 ms 13360 KB Output is correct
28 Correct 176 ms 16532 KB Output is correct
29 Correct 235 ms 19800 KB Output is correct
30 Correct 297 ms 23056 KB Output is correct
31 Correct 321 ms 26288 KB Output is correct
32 Correct 292 ms 27184 KB Output is correct
33 Correct 298 ms 27452 KB Output is correct
34 Correct 4 ms 852 KB Output is correct
35 Correct 7 ms 1236 KB Output is correct
36 Correct 136 ms 13472 KB Output is correct
37 Correct 210 ms 19840 KB Output is correct
38 Correct 324 ms 26624 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 118 ms 14424 KB Output is correct
10 Correct 13 ms 1860 KB Output is correct
11 Correct 68 ms 8004 KB Output is correct
12 Correct 14 ms 2660 KB Output is correct
13 Correct 35 ms 5032 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 1 ms 468 KB Output is correct
16 Correct 115 ms 13836 KB Output is correct
17 Correct 0 ms 212 KB Output is correct
18 Correct 0 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 212 KB Output is correct
22 Correct 1 ms 312 KB Output is correct
23 Correct 340 ms 27672 KB Output is correct
24 Correct 1 ms 212 KB Output is correct
25 Correct 2 ms 468 KB Output is correct
26 Correct 3 ms 596 KB Output is correct
27 Correct 3 ms 724 KB Output is correct
28 Correct 128 ms 11440 KB Output is correct
29 Correct 155 ms 16856 KB Output is correct
30 Correct 250 ms 22288 KB Output is correct
31 Correct 293 ms 27644 KB Output is correct
32 Correct 1 ms 212 KB Output is correct
33 Correct 1 ms 340 KB Output is correct
34 Correct 1 ms 212 KB Output is correct
35 Correct 1 ms 308 KB Output is correct
36 Correct 0 ms 212 KB Output is correct
37 Correct 0 ms 212 KB Output is correct
38 Correct 1 ms 312 KB Output is correct
39 Correct 0 ms 212 KB Output is correct
40 Correct 1 ms 224 KB Output is correct
41 Correct 0 ms 212 KB Output is correct
42 Correct 0 ms 212 KB Output is correct
43 Correct 2 ms 468 KB Output is correct
44 Correct 3 ms 580 KB Output is correct
45 Correct 133 ms 13904 KB Output is correct
46 Correct 200 ms 19864 KB Output is correct
47 Correct 208 ms 19540 KB Output is correct
48 Correct 0 ms 212 KB Output is correct
49 Correct 0 ms 212 KB Output is correct
50 Correct 0 ms 308 KB Output is correct
51 Correct 1 ms 212 KB Output is correct
52 Correct 0 ms 304 KB Output is correct
53 Correct 0 ms 212 KB Output is correct
54 Correct 0 ms 212 KB Output is correct
55 Correct 311 ms 27328 KB Output is correct
56 Correct 0 ms 212 KB Output is correct
57 Correct 2 ms 596 KB Output is correct
58 Correct 6 ms 1236 KB Output is correct
59 Correct 8 ms 1492 KB Output is correct
60 Correct 130 ms 13972 KB Output is correct
61 Correct 194 ms 18720 KB Output is correct
62 Correct 238 ms 22804 KB Output is correct
63 Correct 312 ms 27432 KB Output is correct
64 Correct 1 ms 212 KB Output is correct
65 Correct 1 ms 312 KB Output is correct
66 Correct 0 ms 212 KB Output is correct
67 Correct 282 ms 27436 KB Output is correct
68 Correct 284 ms 27736 KB Output is correct
69 Correct 278 ms 27108 KB Output is correct
70 Correct 3 ms 724 KB Output is correct
71 Correct 7 ms 1116 KB Output is correct
72 Correct 138 ms 14004 KB Output is correct
73 Correct 230 ms 20576 KB Output is correct
74 Correct 313 ms 27060 KB Output is correct
75 Correct 299 ms 27488 KB Output is correct
76 Correct 274 ms 27808 KB Output is correct
77 Correct 4 ms 852 KB Output is correct
78 Correct 8 ms 1352 KB Output is correct
79 Correct 151 ms 13680 KB Output is correct
80 Correct 218 ms 20312 KB Output is correct
81 Correct 304 ms 27100 KB Output is correct
82 Correct 0 ms 212 KB Output is correct
83 Correct 0 ms 212 KB Output is correct
84 Correct 0 ms 212 KB Output is correct
85 Correct 312 ms 26968 KB Output is correct
86 Correct 361 ms 26916 KB Output is correct
87 Correct 303 ms 26532 KB Output is correct
88 Correct 246 ms 23244 KB Output is correct
89 Correct 183 ms 16712 KB Output is correct
90 Correct 237 ms 19880 KB Output is correct
91 Correct 231 ms 19972 KB Output is correct
92 Correct 300 ms 26284 KB Output is correct
93 Correct 306 ms 26300 KB Output is correct
94 Correct 294 ms 26284 KB Output is correct
95 Correct 288 ms 26424 KB Output is correct
96 Correct 0 ms 212 KB Output is correct
97 Correct 19 ms 2464 KB Output is correct
98 Correct 68 ms 8396 KB Output is correct
99 Correct 307 ms 28172 KB Output is correct
100 Correct 9 ms 1364 KB Output is correct
101 Correct 48 ms 5372 KB Output is correct
102 Correct 109 ms 10124 KB Output is correct
103 Correct 106 ms 10804 KB Output is correct
104 Correct 165 ms 14652 KB Output is correct
105 Correct 203 ms 18640 KB Output is correct
106 Correct 251 ms 22424 KB Output is correct
107 Correct 310 ms 26208 KB Output is correct
108 Correct 0 ms 212 KB Output is correct
109 Correct 0 ms 212 KB Output is correct
110 Correct 0 ms 212 KB Output is correct
111 Correct 0 ms 212 KB Output is correct
112 Correct 0 ms 212 KB Output is correct
113 Correct 0 ms 212 KB Output is correct
114 Correct 0 ms 212 KB Output is correct
115 Correct 0 ms 212 KB Output is correct
116 Correct 0 ms 212 KB Output is correct
117 Correct 0 ms 212 KB Output is correct
118 Correct 0 ms 212 KB Output is correct
119 Correct 2 ms 468 KB Output is correct
120 Correct 2 ms 596 KB Output is correct
121 Correct 128 ms 13672 KB Output is correct
122 Correct 198 ms 19572 KB Output is correct
123 Correct 193 ms 19364 KB Output is correct
124 Correct 0 ms 212 KB Output is correct
125 Correct 0 ms 212 KB Output is correct
126 Correct 0 ms 212 KB Output is correct
127 Correct 281 ms 27056 KB Output is correct
128 Correct 273 ms 27412 KB Output is correct
129 Correct 304 ms 26684 KB Output is correct
130 Correct 3 ms 724 KB Output is correct
131 Correct 7 ms 1108 KB Output is correct
132 Correct 173 ms 13512 KB Output is correct
133 Correct 202 ms 20132 KB Output is correct
134 Correct 346 ms 26664 KB Output is correct
135 Correct 331 ms 26992 KB Output is correct
136 Correct 302 ms 27320 KB Output is correct
137 Correct 313 ms 26796 KB Output is correct
138 Correct 289 ms 25728 KB Output is correct
139 Correct 285 ms 23020 KB Output is correct
140 Correct 0 ms 212 KB Output is correct
141 Correct 38 ms 4820 KB Output is correct
142 Correct 18 ms 2548 KB Output is correct
143 Correct 78 ms 7496 KB Output is correct
144 Correct 149 ms 12208 KB Output is correct
145 Correct 136 ms 13360 KB Output is correct
146 Correct 176 ms 16532 KB Output is correct
147 Correct 235 ms 19800 KB Output is correct
148 Correct 297 ms 23056 KB Output is correct
149 Correct 321 ms 26288 KB Output is correct
150 Correct 292 ms 27184 KB Output is correct
151 Correct 298 ms 27452 KB Output is correct
152 Correct 4 ms 852 KB Output is correct
153 Correct 7 ms 1236 KB Output is correct
154 Correct 136 ms 13472 KB Output is correct
155 Correct 210 ms 19840 KB Output is correct
156 Correct 324 ms 26624 KB Output is correct
157 Correct 1 ms 312 KB Output is correct
158 Correct 0 ms 308 KB Output is correct
159 Correct 1 ms 316 KB Output is correct
160 Correct 1 ms 212 KB Output is correct
161 Correct 354 ms 26680 KB Output is correct
162 Correct 356 ms 28104 KB Output is correct
163 Correct 332 ms 27672 KB Output is correct
164 Correct 353 ms 28164 KB Output is correct
165 Correct 353 ms 29012 KB Output is correct
166 Correct 385 ms 28376 KB Output is correct
167 Correct 60 ms 6980 KB Output is correct
168 Correct 33 ms 3916 KB Output is correct
169 Correct 89 ms 9232 KB Output is correct
170 Correct 188 ms 17192 KB Output is correct
171 Correct 254 ms 22440 KB Output is correct
172 Correct 140 ms 14640 KB Output is correct
173 Correct 198 ms 17464 KB Output is correct
174 Correct 210 ms 20296 KB Output is correct
175 Correct 252 ms 22916 KB Output is correct
176 Correct 312 ms 25868 KB Output is correct
177 Correct 356 ms 28912 KB Output is correct