Submission #831877

# Submission time Handle Problem Language Result Execution time Memory
831877 2023-08-20T16:36:17 Z andrey27_sm Fountain Parks (IOI21_parks) C++17
100 / 100
550 ms 39540 KB
#include "parks.h"
#include <bits/stdc++.h>
using namespace std;
vector<pair<int,int>> cons[200001];
int mask_l[200001];
vector<int> u;
vector<int> v;
vector<int> a;
vector<int> b;
struct dsu{
    int sz = 0;
    vector<int> pr;
    int p(int v){
        if(pr[v] == v) return v;
        return pr[v] = p(pr[v]);
    }
    bool un(int u,int v){
        u = p(u);
        v = p(v);
        if(u == v){
            return 0;
            exit(1);
        }
        pr[u] = v;
        sz++;
        return 1;
    }
} D;
int construct_roads(vector<int> x, vector<int> y) {
    int n = x.size();
    D.pr.resize(n);
    map<pair<int,int>,int> sol;
    for (int i = 0; i < n; ++i)
    {
        D.pr[i] = i;
    }
    vector<pair<int,pair<int,int>>> x_d;
    vector<pair<int,pair<int,int>>> y_d;
    for (int i = 0; i < n; ++i)
    {
        x_d.push_back({x[i],{y[i],i}});
        y_d.push_back({y[i],{x[i],i}});
        sol[{x[i],y[i]}] = i;
    }
    /*for(int i = 0;i < n;i++){
        assert(sol.count({x[i],y[i]}) + sol.count({x[i]+2,y[i]})+sol.count({x[i]+2,y[i]+2})+sol.count({x[i],y[i]+2}) < 4);
    }*/
    sort(x_d.begin(), x_d.end());
    sort(y_d.begin(), y_d.end());
    for (int i = 1; i < n; ++i)
    {
        if(x_d[i].first == x_d[i-1].first and x_d[i].second.first-2 == x_d[i-1].second.first){
            D.un(x_d[i-1].second.second,x_d[i].second.second);
        }
    }
    for (int i = 1; i < n; ++i)
    {
        if(y_d[i].first == y_d[i-1].first and y_d[i].second.first-2 == y_d[i-1].second.first){
            D.un(y_d[i-1].second.second,y_d[i].second.second);
        }
    }
    if(D.sz != n-1) return 0;
    for (int i = 0; i < n; ++i)
    {
        if(sol.count({x[i],y[i]+2})) {
            if((sol.count({x[i],y[i]}) + sol.count({x[i]+2,y[i]})+sol.count({x[i]+2,y[i]+2})+sol.count({x[i],y[i]+2}) == 4) and ((x[i]+y[i])&3)){
            }
            else{
                u.push_back(sol[{x[i],y[i]+2}]);
                v.push_back(i);
                if((x[i]+y[i])&3) a.push_back(x[i]+1);
                else a.push_back(x[i]-1);
                b.push_back(y[i]+1);
            }
        }
        if(sol.count({x[i]+2,y[i]})){
            if((sol.count({x[i],y[i]}) + sol.count({x[i]+2,y[i]})+sol.count({x[i]+2,y[i]+2})+sol.count({x[i],y[i]+2}) == 4) and ((x[i]+y[i])&3) == 0){
            }
            else{
                u.push_back(sol[{x[i] + 2, y[i]}]);
                v.push_back(i);
                if ((x[i] + y[i]) & 3) b.push_back(y[i] - 1);
                else b.push_back(y[i] + 1);
                a.push_back(x[i] + 1);
            }
        }
    }
    //if(points.size() != n-1) return 0;
    build(u,v,a,b);
    return 1;
}
# Verdict Execution time Memory Grader output
1 Correct 4 ms 4948 KB Output is correct
2 Correct 3 ms 4948 KB Output is correct
3 Correct 2 ms 5000 KB Output is correct
4 Correct 3 ms 5000 KB Output is correct
5 Correct 3 ms 5004 KB Output is correct
6 Correct 2 ms 4948 KB Output is correct
7 Correct 2 ms 4948 KB Output is correct
8 Correct 2 ms 4948 KB Output is correct
9 Correct 162 ms 20820 KB Output is correct
10 Correct 17 ms 6740 KB Output is correct
11 Correct 70 ms 13624 KB Output is correct
12 Correct 18 ms 7360 KB Output is correct
13 Correct 19 ms 9860 KB Output is correct
14 Correct 3 ms 5012 KB Output is correct
15 Correct 3 ms 5144 KB Output is correct
16 Correct 176 ms 20780 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 4948 KB Output is correct
2 Correct 3 ms 4948 KB Output is correct
3 Correct 2 ms 5000 KB Output is correct
4 Correct 3 ms 5000 KB Output is correct
5 Correct 3 ms 5004 KB Output is correct
6 Correct 2 ms 4948 KB Output is correct
7 Correct 2 ms 4948 KB Output is correct
8 Correct 2 ms 4948 KB Output is correct
9 Correct 162 ms 20820 KB Output is correct
10 Correct 17 ms 6740 KB Output is correct
11 Correct 70 ms 13624 KB Output is correct
12 Correct 18 ms 7360 KB Output is correct
13 Correct 19 ms 9860 KB Output is correct
14 Correct 3 ms 5012 KB Output is correct
15 Correct 3 ms 5144 KB Output is correct
16 Correct 176 ms 20780 KB Output is correct
17 Correct 2 ms 4948 KB Output is correct
18 Correct 3 ms 4948 KB Output is correct
19 Correct 3 ms 5000 KB Output is correct
20 Correct 4 ms 4996 KB Output is correct
21 Correct 3 ms 4888 KB Output is correct
22 Correct 3 ms 5004 KB Output is correct
23 Correct 528 ms 38040 KB Output is correct
24 Correct 2 ms 4948 KB Output is correct
25 Correct 4 ms 5204 KB Output is correct
26 Correct 5 ms 5304 KB Output is correct
27 Correct 5 ms 5400 KB Output is correct
28 Correct 143 ms 18576 KB Output is correct
29 Correct 245 ms 24560 KB Output is correct
30 Correct 355 ms 32040 KB Output is correct
31 Correct 531 ms 37692 KB Output is correct
32 Correct 3 ms 4948 KB Output is correct
33 Correct 3 ms 4948 KB Output is correct
34 Correct 2 ms 4948 KB Output is correct
35 Correct 3 ms 4948 KB Output is correct
36 Correct 3 ms 5004 KB Output is correct
37 Correct 3 ms 4948 KB Output is correct
38 Correct 3 ms 4948 KB Output is correct
39 Correct 2 ms 4948 KB Output is correct
40 Correct 2 ms 5012 KB Output is correct
41 Correct 2 ms 4948 KB Output is correct
42 Correct 2 ms 4948 KB Output is correct
43 Correct 5 ms 5204 KB Output is correct
44 Correct 5 ms 5308 KB Output is correct
45 Correct 172 ms 21096 KB Output is correct
46 Correct 345 ms 28548 KB Output is correct
47 Correct 308 ms 28624 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 4948 KB Output is correct
2 Correct 3 ms 4948 KB Output is correct
3 Correct 2 ms 5000 KB Output is correct
4 Correct 3 ms 5000 KB Output is correct
5 Correct 3 ms 5004 KB Output is correct
6 Correct 2 ms 4948 KB Output is correct
7 Correct 2 ms 4948 KB Output is correct
8 Correct 2 ms 4948 KB Output is correct
9 Correct 162 ms 20820 KB Output is correct
10 Correct 17 ms 6740 KB Output is correct
11 Correct 70 ms 13624 KB Output is correct
12 Correct 18 ms 7360 KB Output is correct
13 Correct 19 ms 9860 KB Output is correct
14 Correct 3 ms 5012 KB Output is correct
15 Correct 3 ms 5144 KB Output is correct
16 Correct 176 ms 20780 KB Output is correct
17 Correct 2 ms 4948 KB Output is correct
18 Correct 3 ms 4948 KB Output is correct
19 Correct 3 ms 5000 KB Output is correct
20 Correct 4 ms 4996 KB Output is correct
21 Correct 3 ms 4888 KB Output is correct
22 Correct 3 ms 5004 KB Output is correct
23 Correct 528 ms 38040 KB Output is correct
24 Correct 2 ms 4948 KB Output is correct
25 Correct 4 ms 5204 KB Output is correct
26 Correct 5 ms 5304 KB Output is correct
27 Correct 5 ms 5400 KB Output is correct
28 Correct 143 ms 18576 KB Output is correct
29 Correct 245 ms 24560 KB Output is correct
30 Correct 355 ms 32040 KB Output is correct
31 Correct 531 ms 37692 KB Output is correct
32 Correct 3 ms 4948 KB Output is correct
33 Correct 3 ms 4948 KB Output is correct
34 Correct 2 ms 4948 KB Output is correct
35 Correct 3 ms 4948 KB Output is correct
36 Correct 3 ms 5004 KB Output is correct
37 Correct 3 ms 4948 KB Output is correct
38 Correct 3 ms 4948 KB Output is correct
39 Correct 2 ms 4948 KB Output is correct
40 Correct 2 ms 5012 KB Output is correct
41 Correct 2 ms 4948 KB Output is correct
42 Correct 2 ms 4948 KB Output is correct
43 Correct 5 ms 5204 KB Output is correct
44 Correct 5 ms 5308 KB Output is correct
45 Correct 172 ms 21096 KB Output is correct
46 Correct 345 ms 28548 KB Output is correct
47 Correct 308 ms 28624 KB Output is correct
48 Correct 2 ms 4948 KB Output is correct
49 Correct 3 ms 4948 KB Output is correct
50 Correct 2 ms 4948 KB Output is correct
51 Correct 2 ms 5000 KB Output is correct
52 Correct 2 ms 4948 KB Output is correct
53 Correct 2 ms 4948 KB Output is correct
54 Correct 2 ms 5008 KB Output is correct
55 Correct 512 ms 37396 KB Output is correct
56 Correct 3 ms 4948 KB Output is correct
57 Correct 6 ms 5332 KB Output is correct
58 Correct 11 ms 6100 KB Output is correct
59 Correct 9 ms 6240 KB Output is correct
60 Correct 206 ms 21344 KB Output is correct
61 Correct 331 ms 28028 KB Output is correct
62 Correct 391 ms 32416 KB Output is correct
63 Correct 456 ms 37496 KB Output is correct
64 Correct 3 ms 4948 KB Output is correct
65 Correct 3 ms 4948 KB Output is correct
66 Correct 2 ms 4948 KB Output is correct
67 Correct 356 ms 36584 KB Output is correct
68 Correct 396 ms 37984 KB Output is correct
69 Correct 391 ms 37204 KB Output is correct
70 Correct 4 ms 5332 KB Output is correct
71 Correct 6 ms 5912 KB Output is correct
72 Correct 176 ms 21040 KB Output is correct
73 Correct 324 ms 29448 KB Output is correct
74 Correct 439 ms 36608 KB Output is correct
75 Correct 480 ms 39044 KB Output is correct
76 Correct 364 ms 37836 KB Output is correct
77 Correct 5 ms 5588 KB Output is correct
78 Correct 7 ms 6172 KB Output is correct
79 Correct 175 ms 21224 KB Output is correct
80 Correct 306 ms 29316 KB Output is correct
81 Correct 444 ms 37396 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 4948 KB Output is correct
2 Correct 3 ms 4948 KB Output is correct
3 Correct 2 ms 5000 KB Output is correct
4 Correct 3 ms 5000 KB Output is correct
5 Correct 3 ms 5004 KB Output is correct
6 Correct 2 ms 4948 KB Output is correct
7 Correct 2 ms 4948 KB Output is correct
8 Correct 2 ms 4948 KB Output is correct
9 Correct 162 ms 20820 KB Output is correct
10 Correct 17 ms 6740 KB Output is correct
11 Correct 70 ms 13624 KB Output is correct
12 Correct 18 ms 7360 KB Output is correct
13 Correct 19 ms 9860 KB Output is correct
14 Correct 3 ms 5012 KB Output is correct
15 Correct 3 ms 5144 KB Output is correct
16 Correct 176 ms 20780 KB Output is correct
17 Correct 2 ms 5004 KB Output is correct
18 Correct 2 ms 4948 KB Output is correct
19 Correct 2 ms 4948 KB Output is correct
20 Correct 403 ms 36676 KB Output is correct
21 Correct 434 ms 36740 KB Output is correct
22 Correct 445 ms 36860 KB Output is correct
23 Correct 333 ms 32736 KB Output is correct
24 Correct 169 ms 26648 KB Output is correct
25 Correct 165 ms 26680 KB Output is correct
26 Correct 164 ms 26560 KB Output is correct
27 Correct 450 ms 36792 KB Output is correct
28 Correct 433 ms 36684 KB Output is correct
29 Correct 531 ms 36788 KB Output is correct
30 Correct 465 ms 36776 KB Output is correct
31 Correct 3 ms 4948 KB Output is correct
32 Correct 25 ms 7364 KB Output is correct
33 Correct 64 ms 16820 KB Output is correct
34 Correct 411 ms 36856 KB Output is correct
35 Correct 9 ms 6168 KB Output is correct
36 Correct 36 ms 10888 KB Output is correct
37 Correct 70 ms 16796 KB Output is correct
38 Correct 158 ms 18352 KB Output is correct
39 Correct 222 ms 22828 KB Output is correct
40 Correct 286 ms 28452 KB Output is correct
41 Correct 374 ms 32788 KB Output is correct
42 Correct 469 ms 37396 KB Output is correct
43 Correct 3 ms 4948 KB Output is correct
44 Correct 2 ms 4948 KB Output is correct
45 Correct 3 ms 4948 KB Output is correct
46 Correct 2 ms 4904 KB Output is correct
47 Correct 3 ms 5004 KB Output is correct
48 Correct 2 ms 4948 KB Output is correct
49 Correct 3 ms 4948 KB Output is correct
50 Correct 2 ms 4948 KB Output is correct
51 Correct 2 ms 4948 KB Output is correct
52 Correct 2 ms 4948 KB Output is correct
53 Correct 2 ms 5000 KB Output is correct
54 Correct 3 ms 5204 KB Output is correct
55 Correct 4 ms 5332 KB Output is correct
56 Correct 172 ms 21392 KB Output is correct
57 Correct 293 ms 28828 KB Output is correct
58 Correct 267 ms 28984 KB Output is correct
59 Correct 3 ms 5004 KB Output is correct
60 Correct 2 ms 5004 KB Output is correct
61 Correct 2 ms 4948 KB Output is correct
62 Correct 367 ms 36836 KB Output is correct
63 Correct 379 ms 38212 KB Output is correct
64 Correct 378 ms 37488 KB Output is correct
65 Correct 4 ms 5460 KB Output is correct
66 Correct 7 ms 5844 KB Output is correct
67 Correct 172 ms 21208 KB Output is correct
68 Correct 336 ms 29796 KB Output is correct
69 Correct 457 ms 37028 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 4948 KB Output is correct
2 Correct 3 ms 4948 KB Output is correct
3 Correct 2 ms 5000 KB Output is correct
4 Correct 3 ms 5000 KB Output is correct
5 Correct 3 ms 5004 KB Output is correct
6 Correct 2 ms 4948 KB Output is correct
7 Correct 2 ms 4948 KB Output is correct
8 Correct 2 ms 4948 KB Output is correct
9 Correct 162 ms 20820 KB Output is correct
10 Correct 17 ms 6740 KB Output is correct
11 Correct 70 ms 13624 KB Output is correct
12 Correct 18 ms 7360 KB Output is correct
13 Correct 19 ms 9860 KB Output is correct
14 Correct 3 ms 5012 KB Output is correct
15 Correct 3 ms 5144 KB Output is correct
16 Correct 176 ms 20780 KB Output is correct
17 Correct 405 ms 37172 KB Output is correct
18 Correct 430 ms 37312 KB Output is correct
19 Correct 422 ms 36464 KB Output is correct
20 Correct 493 ms 39540 KB Output is correct
21 Correct 394 ms 33960 KB Output is correct
22 Correct 3 ms 4948 KB Output is correct
23 Correct 57 ms 10772 KB Output is correct
24 Correct 14 ms 7376 KB Output is correct
25 Correct 52 ms 13584 KB Output is correct
26 Correct 92 ms 19168 KB Output is correct
27 Correct 213 ms 22420 KB Output is correct
28 Correct 276 ms 26820 KB Output is correct
29 Correct 373 ms 30980 KB Output is correct
30 Correct 459 ms 34560 KB Output is correct
31 Correct 494 ms 38408 KB Output is correct
32 Correct 455 ms 39320 KB Output is correct
33 Correct 389 ms 38124 KB Output is correct
34 Correct 6 ms 5508 KB Output is correct
35 Correct 7 ms 6100 KB Output is correct
36 Correct 177 ms 21492 KB Output is correct
37 Correct 318 ms 29736 KB Output is correct
38 Correct 454 ms 37644 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 4948 KB Output is correct
2 Correct 3 ms 4948 KB Output is correct
3 Correct 2 ms 5000 KB Output is correct
4 Correct 3 ms 5000 KB Output is correct
5 Correct 3 ms 5004 KB Output is correct
6 Correct 2 ms 4948 KB Output is correct
7 Correct 2 ms 4948 KB Output is correct
8 Correct 2 ms 4948 KB Output is correct
9 Correct 162 ms 20820 KB Output is correct
10 Correct 17 ms 6740 KB Output is correct
11 Correct 70 ms 13624 KB Output is correct
12 Correct 18 ms 7360 KB Output is correct
13 Correct 19 ms 9860 KB Output is correct
14 Correct 3 ms 5012 KB Output is correct
15 Correct 3 ms 5144 KB Output is correct
16 Correct 176 ms 20780 KB Output is correct
17 Correct 2 ms 4948 KB Output is correct
18 Correct 3 ms 4948 KB Output is correct
19 Correct 3 ms 5000 KB Output is correct
20 Correct 4 ms 4996 KB Output is correct
21 Correct 3 ms 4888 KB Output is correct
22 Correct 3 ms 5004 KB Output is correct
23 Correct 528 ms 38040 KB Output is correct
24 Correct 2 ms 4948 KB Output is correct
25 Correct 4 ms 5204 KB Output is correct
26 Correct 5 ms 5304 KB Output is correct
27 Correct 5 ms 5400 KB Output is correct
28 Correct 143 ms 18576 KB Output is correct
29 Correct 245 ms 24560 KB Output is correct
30 Correct 355 ms 32040 KB Output is correct
31 Correct 531 ms 37692 KB Output is correct
32 Correct 3 ms 4948 KB Output is correct
33 Correct 3 ms 4948 KB Output is correct
34 Correct 2 ms 4948 KB Output is correct
35 Correct 3 ms 4948 KB Output is correct
36 Correct 3 ms 5004 KB Output is correct
37 Correct 3 ms 4948 KB Output is correct
38 Correct 3 ms 4948 KB Output is correct
39 Correct 2 ms 4948 KB Output is correct
40 Correct 2 ms 5012 KB Output is correct
41 Correct 2 ms 4948 KB Output is correct
42 Correct 2 ms 4948 KB Output is correct
43 Correct 5 ms 5204 KB Output is correct
44 Correct 5 ms 5308 KB Output is correct
45 Correct 172 ms 21096 KB Output is correct
46 Correct 345 ms 28548 KB Output is correct
47 Correct 308 ms 28624 KB Output is correct
48 Correct 2 ms 4948 KB Output is correct
49 Correct 3 ms 4948 KB Output is correct
50 Correct 2 ms 4948 KB Output is correct
51 Correct 2 ms 5000 KB Output is correct
52 Correct 2 ms 4948 KB Output is correct
53 Correct 2 ms 4948 KB Output is correct
54 Correct 2 ms 5008 KB Output is correct
55 Correct 512 ms 37396 KB Output is correct
56 Correct 3 ms 4948 KB Output is correct
57 Correct 6 ms 5332 KB Output is correct
58 Correct 11 ms 6100 KB Output is correct
59 Correct 9 ms 6240 KB Output is correct
60 Correct 206 ms 21344 KB Output is correct
61 Correct 331 ms 28028 KB Output is correct
62 Correct 391 ms 32416 KB Output is correct
63 Correct 456 ms 37496 KB Output is correct
64 Correct 3 ms 4948 KB Output is correct
65 Correct 3 ms 4948 KB Output is correct
66 Correct 2 ms 4948 KB Output is correct
67 Correct 356 ms 36584 KB Output is correct
68 Correct 396 ms 37984 KB Output is correct
69 Correct 391 ms 37204 KB Output is correct
70 Correct 4 ms 5332 KB Output is correct
71 Correct 6 ms 5912 KB Output is correct
72 Correct 176 ms 21040 KB Output is correct
73 Correct 324 ms 29448 KB Output is correct
74 Correct 439 ms 36608 KB Output is correct
75 Correct 480 ms 39044 KB Output is correct
76 Correct 364 ms 37836 KB Output is correct
77 Correct 5 ms 5588 KB Output is correct
78 Correct 7 ms 6172 KB Output is correct
79 Correct 175 ms 21224 KB Output is correct
80 Correct 306 ms 29316 KB Output is correct
81 Correct 444 ms 37396 KB Output is correct
82 Correct 2 ms 5004 KB Output is correct
83 Correct 2 ms 4948 KB Output is correct
84 Correct 2 ms 4948 KB Output is correct
85 Correct 403 ms 36676 KB Output is correct
86 Correct 434 ms 36740 KB Output is correct
87 Correct 445 ms 36860 KB Output is correct
88 Correct 333 ms 32736 KB Output is correct
89 Correct 169 ms 26648 KB Output is correct
90 Correct 165 ms 26680 KB Output is correct
91 Correct 164 ms 26560 KB Output is correct
92 Correct 450 ms 36792 KB Output is correct
93 Correct 433 ms 36684 KB Output is correct
94 Correct 531 ms 36788 KB Output is correct
95 Correct 465 ms 36776 KB Output is correct
96 Correct 3 ms 4948 KB Output is correct
97 Correct 25 ms 7364 KB Output is correct
98 Correct 64 ms 16820 KB Output is correct
99 Correct 411 ms 36856 KB Output is correct
100 Correct 9 ms 6168 KB Output is correct
101 Correct 36 ms 10888 KB Output is correct
102 Correct 70 ms 16796 KB Output is correct
103 Correct 158 ms 18352 KB Output is correct
104 Correct 222 ms 22828 KB Output is correct
105 Correct 286 ms 28452 KB Output is correct
106 Correct 374 ms 32788 KB Output is correct
107 Correct 469 ms 37396 KB Output is correct
108 Correct 3 ms 4948 KB Output is correct
109 Correct 2 ms 4948 KB Output is correct
110 Correct 3 ms 4948 KB Output is correct
111 Correct 2 ms 4904 KB Output is correct
112 Correct 3 ms 5004 KB Output is correct
113 Correct 2 ms 4948 KB Output is correct
114 Correct 3 ms 4948 KB Output is correct
115 Correct 2 ms 4948 KB Output is correct
116 Correct 2 ms 4948 KB Output is correct
117 Correct 2 ms 4948 KB Output is correct
118 Correct 2 ms 5000 KB Output is correct
119 Correct 3 ms 5204 KB Output is correct
120 Correct 4 ms 5332 KB Output is correct
121 Correct 172 ms 21392 KB Output is correct
122 Correct 293 ms 28828 KB Output is correct
123 Correct 267 ms 28984 KB Output is correct
124 Correct 3 ms 5004 KB Output is correct
125 Correct 2 ms 5004 KB Output is correct
126 Correct 2 ms 4948 KB Output is correct
127 Correct 367 ms 36836 KB Output is correct
128 Correct 379 ms 38212 KB Output is correct
129 Correct 378 ms 37488 KB Output is correct
130 Correct 4 ms 5460 KB Output is correct
131 Correct 7 ms 5844 KB Output is correct
132 Correct 172 ms 21208 KB Output is correct
133 Correct 336 ms 29796 KB Output is correct
134 Correct 457 ms 37028 KB Output is correct
135 Correct 405 ms 37172 KB Output is correct
136 Correct 430 ms 37312 KB Output is correct
137 Correct 422 ms 36464 KB Output is correct
138 Correct 493 ms 39540 KB Output is correct
139 Correct 394 ms 33960 KB Output is correct
140 Correct 3 ms 4948 KB Output is correct
141 Correct 57 ms 10772 KB Output is correct
142 Correct 14 ms 7376 KB Output is correct
143 Correct 52 ms 13584 KB Output is correct
144 Correct 92 ms 19168 KB Output is correct
145 Correct 213 ms 22420 KB Output is correct
146 Correct 276 ms 26820 KB Output is correct
147 Correct 373 ms 30980 KB Output is correct
148 Correct 459 ms 34560 KB Output is correct
149 Correct 494 ms 38408 KB Output is correct
150 Correct 455 ms 39320 KB Output is correct
151 Correct 389 ms 38124 KB Output is correct
152 Correct 6 ms 5508 KB Output is correct
153 Correct 7 ms 6100 KB Output is correct
154 Correct 177 ms 21492 KB Output is correct
155 Correct 318 ms 29736 KB Output is correct
156 Correct 454 ms 37644 KB Output is correct
157 Correct 2 ms 4948 KB Output is correct
158 Correct 2 ms 4948 KB Output is correct
159 Correct 2 ms 4948 KB Output is correct
160 Correct 2 ms 4948 KB Output is correct
161 Correct 550 ms 38168 KB Output is correct
162 Correct 426 ms 39200 KB Output is correct
163 Correct 447 ms 38404 KB Output is correct
164 Correct 431 ms 38652 KB Output is correct
165 Correct 473 ms 38568 KB Output is correct
166 Correct 495 ms 38220 KB Output is correct
167 Correct 91 ms 12896 KB Output is correct
168 Correct 25 ms 8516 KB Output is correct
169 Correct 60 ms 14492 KB Output is correct
170 Correct 120 ms 22700 KB Output is correct
171 Correct 160 ms 28572 KB Output is correct
172 Correct 221 ms 22140 KB Output is correct
173 Correct 274 ms 25012 KB Output is correct
174 Correct 350 ms 29604 KB Output is correct
175 Correct 399 ms 32552 KB Output is correct
176 Correct 470 ms 35700 KB Output is correct
177 Correct 532 ms 38880 KB Output is correct