답안 #621340

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
621340 2022-08-03T17:48:16 Z Bench0310 분수 공원 (IOI21_parks) C++17
100 / 100
1939 ms 92860 KB
#include <bits/stdc++.h>
#include "parks.h"

using namespace std;
typedef long long ll;

int construct_roads(vector<int> x,vector<int> y)
{
    int n=x.size();
    map<array<int,2>,int> id;
    for(int i=0;i<n;i++) id[{x[i],y[i]}]=i;
    map<array<int,2>,int> bench_id;
    int m=0;
    auto fountain_pos=[&](int a,int b)->int{return (id.find({a,b})!=id.end()?id[{a,b}]:-1);};
    auto tp=[&](int a,int b)->int{return (((a+b)/2)&1);}; //color of chessboard at this bench
    for(int i=0;i<n;i++)
    {
        int a=x[i],b=y[i];
        if(fountain_pos(a+2,b)!=-1&&fountain_pos(a,b+2)!=-1&&fountain_pos(a+2,b+2)!=-1)
        {
            bench_id[{a+1,b+1}]=(++m);
        }
    }
    auto bench_pos=[&](int a,int b)->int{return (bench_id.find({a,b})!=bench_id.end()?bench_id[{a,b}]:0);};
    vector<array<int,3>> g[m+1]; //to,bad_a,bad_b
    for(auto [p,bench]:bench_id)
    {
        auto [a,b]=p;
        if(tp(a,b)==0)
        {
            for(int dy:{-2,2})
            {
                int t=bench_pos(a,b+dy);
                g[t].push_back({bench,fountain_pos(a-1,b+dy/2),fountain_pos(a+1,b+dy/2)});
            }
        }
        else
        {
            for(int dx:{-2,2})
            {
                int t=bench_pos(a+dx,b);
                g[t].push_back({bench,fountain_pos(a+dx/2,b-1),fountain_pos(a+dx/2,b+1)});
            }
        }
    }
    set<array<int,2>> bad_edges;
    vector<bool> vis(m+1,0);
    function<void(int)> dfs=[&](int a)
    {
        vis[a]=1;
        for(auto [to,bad_a,bad_b]:g[a])
        {
            if(!vis[to])
            {
                bad_edges.insert({bad_a,bad_b});
                bad_edges.insert({bad_b,bad_a});
                dfs(to);
            }
        }
    };
    dfs(0);
    vector<int> p(n);
    for(int i=0;i<n;i++) p[i]=i;
    vector<int> sz(n,1);
    int cc=n;
    function<int(int)> find_set=[&](int a)->int
    {
        if(a==p[a]) return a;
        else return p[a]=find_set(p[a]);
    };
    auto merge_sets=[&](int a,int b)->bool
    {
        a=find_set(a);
        b=find_set(b);
        if(a==b) return 0;
        if(sz[a]<sz[b]) swap(a,b);
        p[b]=a;
        sz[a]+=sz[b];
        cc--;
        return 1;
    };
    vector<int> ru,rv,ra,rb;
    for(int i=0;i<n;i++)
    {
        int a=x[i],b=y[i];
        //horizontal
        for(int dx:{2})
        {
            int j=fountain_pos(a+dx,b);
            if(j==-1||bad_edges.find({i,j})!=bad_edges.end()) continue;
            if(merge_sets(i,j))
            {
                ru.push_back(i);
                rv.push_back(j);
                int d=(tp(a+1,b+1)==0?1:-1);
                ra.push_back(a+1);
                rb.push_back(b+d);
            }
        }
        //vertical
        for(int dy:{2})
        {
            int j=fountain_pos(a,b+dy);
            if(j==-1||bad_edges.find({i,j})!=bad_edges.end()) continue;
            if(merge_sets(i,j))
            {
                ru.push_back(i);
                rv.push_back(j);
                int d=(tp(a+1,b+1)==1?1:-1);
                ra.push_back(a+d);
                rb.push_back(b+1);
            }
        }
    }
    if(cc==1) build(ru,rv,ra,rb);
    return (cc==1);
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 296 KB Output is correct
3 Correct 1 ms 212 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 216 KB Output is correct
7 Correct 1 ms 312 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 168 ms 14584 KB Output is correct
10 Correct 10 ms 1876 KB Output is correct
11 Correct 66 ms 8000 KB Output is correct
12 Correct 16 ms 2644 KB Output is correct
13 Correct 42 ms 5272 KB Output is correct
14 Correct 1 ms 308 KB Output is correct
15 Correct 2 ms 468 KB Output is correct
16 Correct 148 ms 14556 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 212 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 216 KB Output is correct
7 Correct 1 ms 312 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 168 ms 14584 KB Output is correct
10 Correct 10 ms 1876 KB Output is correct
11 Correct 66 ms 8000 KB Output is correct
12 Correct 16 ms 2644 KB Output is correct
13 Correct 42 ms 5272 KB Output is correct
14 Correct 1 ms 308 KB Output is correct
15 Correct 2 ms 468 KB Output is correct
16 Correct 148 ms 14556 KB Output is correct
17 Correct 1 ms 212 KB Output is correct
18 Correct 1 ms 296 KB Output is correct
19 Correct 1 ms 296 KB Output is correct
20 Correct 1 ms 304 KB Output is correct
21 Correct 1 ms 212 KB Output is correct
22 Correct 1 ms 212 KB Output is correct
23 Correct 1075 ms 50092 KB Output is correct
24 Correct 1 ms 304 KB Output is correct
25 Correct 4 ms 568 KB Output is correct
26 Correct 7 ms 960 KB Output is correct
27 Correct 8 ms 1108 KB Output is correct
28 Correct 291 ms 20172 KB Output is correct
29 Correct 509 ms 29952 KB Output is correct
30 Correct 794 ms 40292 KB Output is correct
31 Correct 1107 ms 50084 KB Output is correct
32 Correct 1 ms 212 KB Output is correct
33 Correct 1 ms 212 KB Output is correct
34 Correct 1 ms 212 KB Output is correct
35 Correct 1 ms 212 KB Output is correct
36 Correct 0 ms 212 KB Output is correct
37 Correct 0 ms 300 KB Output is correct
38 Correct 1 ms 212 KB Output is correct
39 Correct 1 ms 212 KB Output is correct
40 Correct 1 ms 212 KB Output is correct
41 Correct 1 ms 212 KB Output is correct
42 Correct 1 ms 212 KB Output is correct
43 Correct 3 ms 468 KB Output is correct
44 Correct 3 ms 596 KB Output is correct
45 Correct 185 ms 14588 KB Output is correct
46 Correct 316 ms 20860 KB Output is correct
47 Correct 459 ms 20896 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 212 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 216 KB Output is correct
7 Correct 1 ms 312 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 168 ms 14584 KB Output is correct
10 Correct 10 ms 1876 KB Output is correct
11 Correct 66 ms 8000 KB Output is correct
12 Correct 16 ms 2644 KB Output is correct
13 Correct 42 ms 5272 KB Output is correct
14 Correct 1 ms 308 KB Output is correct
15 Correct 2 ms 468 KB Output is correct
16 Correct 148 ms 14556 KB Output is correct
17 Correct 1 ms 212 KB Output is correct
18 Correct 1 ms 296 KB Output is correct
19 Correct 1 ms 296 KB Output is correct
20 Correct 1 ms 304 KB Output is correct
21 Correct 1 ms 212 KB Output is correct
22 Correct 1 ms 212 KB Output is correct
23 Correct 1075 ms 50092 KB Output is correct
24 Correct 1 ms 304 KB Output is correct
25 Correct 4 ms 568 KB Output is correct
26 Correct 7 ms 960 KB Output is correct
27 Correct 8 ms 1108 KB Output is correct
28 Correct 291 ms 20172 KB Output is correct
29 Correct 509 ms 29952 KB Output is correct
30 Correct 794 ms 40292 KB Output is correct
31 Correct 1107 ms 50084 KB Output is correct
32 Correct 1 ms 212 KB Output is correct
33 Correct 1 ms 212 KB Output is correct
34 Correct 1 ms 212 KB Output is correct
35 Correct 1 ms 212 KB Output is correct
36 Correct 0 ms 212 KB Output is correct
37 Correct 0 ms 300 KB Output is correct
38 Correct 1 ms 212 KB Output is correct
39 Correct 1 ms 212 KB Output is correct
40 Correct 1 ms 212 KB Output is correct
41 Correct 1 ms 212 KB Output is correct
42 Correct 1 ms 212 KB Output is correct
43 Correct 3 ms 468 KB Output is correct
44 Correct 3 ms 596 KB Output is correct
45 Correct 185 ms 14588 KB Output is correct
46 Correct 316 ms 20860 KB Output is correct
47 Correct 459 ms 20896 KB Output is correct
48 Correct 1 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 1 ms 300 KB Output is correct
52 Correct 1 ms 212 KB Output is correct
53 Correct 1 ms 212 KB Output is correct
54 Correct 0 ms 212 KB Output is correct
55 Correct 1233 ms 72756 KB Output is correct
56 Correct 0 ms 212 KB Output is correct
57 Correct 5 ms 956 KB Output is correct
58 Correct 17 ms 2524 KB Output is correct
59 Correct 29 ms 3140 KB Output is correct
60 Correct 445 ms 36548 KB Output is correct
61 Correct 742 ms 48860 KB Output is correct
62 Correct 1006 ms 59824 KB Output is correct
63 Correct 1260 ms 73024 KB Output is correct
64 Correct 0 ms 212 KB Output is correct
65 Correct 0 ms 212 KB Output is correct
66 Correct 1 ms 212 KB Output is correct
67 Correct 379 ms 28660 KB Output is correct
68 Correct 387 ms 28672 KB Output is correct
69 Correct 385 ms 28524 KB Output is correct
70 Correct 5 ms 668 KB Output is correct
71 Correct 12 ms 1220 KB Output is correct
72 Correct 235 ms 14472 KB Output is correct
73 Correct 392 ms 21672 KB Output is correct
74 Correct 520 ms 28732 KB Output is correct
75 Correct 567 ms 28712 KB Output is correct
76 Correct 416 ms 28672 KB Output is correct
77 Correct 6 ms 852 KB Output is correct
78 Correct 11 ms 1452 KB Output is correct
79 Correct 201 ms 14480 KB Output is correct
80 Correct 381 ms 21604 KB Output is correct
81 Correct 569 ms 28708 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 212 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 216 KB Output is correct
7 Correct 1 ms 312 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 168 ms 14584 KB Output is correct
10 Correct 10 ms 1876 KB Output is correct
11 Correct 66 ms 8000 KB Output is correct
12 Correct 16 ms 2644 KB Output is correct
13 Correct 42 ms 5272 KB Output is correct
14 Correct 1 ms 308 KB Output is correct
15 Correct 2 ms 468 KB Output is correct
16 Correct 148 ms 14556 KB Output is correct
17 Correct 1 ms 212 KB Output is correct
18 Correct 1 ms 212 KB Output is correct
19 Correct 1 ms 212 KB Output is correct
20 Correct 686 ms 29528 KB Output is correct
21 Correct 559 ms 29348 KB Output is correct
22 Correct 633 ms 29384 KB Output is correct
23 Correct 464 ms 24772 KB Output is correct
24 Correct 320 ms 19148 KB Output is correct
25 Correct 614 ms 22384 KB Output is correct
26 Correct 401 ms 22376 KB Output is correct
27 Correct 477 ms 28676 KB Output is correct
28 Correct 544 ms 28600 KB Output is correct
29 Correct 649 ms 28576 KB Output is correct
30 Correct 675 ms 28648 KB Output is correct
31 Correct 0 ms 212 KB Output is correct
32 Correct 24 ms 2644 KB Output is correct
33 Correct 127 ms 10252 KB Output is correct
34 Correct 578 ms 29608 KB Output is correct
35 Correct 13 ms 1520 KB Output is correct
36 Correct 73 ms 6096 KB Output is correct
37 Correct 226 ms 11776 KB Output is correct
38 Correct 168 ms 12244 KB Output is correct
39 Correct 266 ms 16452 KB Output is correct
40 Correct 372 ms 20828 KB Output is correct
41 Correct 591 ms 25196 KB Output is correct
42 Correct 691 ms 29632 KB Output is correct
43 Correct 1 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 1 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 300 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 3 ms 680 KB Output is correct
56 Correct 173 ms 14588 KB Output is correct
57 Correct 319 ms 20884 KB Output is correct
58 Correct 323 ms 20836 KB Output is correct
59 Correct 1 ms 212 KB Output is correct
60 Correct 1 ms 212 KB Output is correct
61 Correct 1 ms 212 KB Output is correct
62 Correct 421 ms 28684 KB Output is correct
63 Correct 391 ms 28728 KB Output is correct
64 Correct 422 ms 28584 KB Output is correct
65 Correct 4 ms 724 KB Output is correct
66 Correct 9 ms 1136 KB Output is correct
67 Correct 251 ms 14576 KB Output is correct
68 Correct 409 ms 21680 KB Output is correct
69 Correct 547 ms 28672 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 212 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 216 KB Output is correct
7 Correct 1 ms 312 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 168 ms 14584 KB Output is correct
10 Correct 10 ms 1876 KB Output is correct
11 Correct 66 ms 8000 KB Output is correct
12 Correct 16 ms 2644 KB Output is correct
13 Correct 42 ms 5272 KB Output is correct
14 Correct 1 ms 308 KB Output is correct
15 Correct 2 ms 468 KB Output is correct
16 Correct 148 ms 14556 KB Output is correct
17 Correct 454 ms 29236 KB Output is correct
18 Correct 494 ms 29196 KB Output is correct
19 Correct 698 ms 29380 KB Output is correct
20 Correct 704 ms 28036 KB Output is correct
21 Correct 613 ms 25148 KB Output is correct
22 Correct 1 ms 212 KB Output is correct
23 Correct 61 ms 5152 KB Output is correct
24 Correct 30 ms 2764 KB Output is correct
25 Correct 133 ms 8636 KB Output is correct
26 Correct 255 ms 14036 KB Output is correct
27 Correct 235 ms 14900 KB Output is correct
28 Correct 408 ms 18824 KB Output is correct
29 Correct 617 ms 22508 KB Output is correct
30 Correct 695 ms 25668 KB Output is correct
31 Correct 810 ms 29576 KB Output is correct
32 Correct 737 ms 28592 KB Output is correct
33 Correct 452 ms 28640 KB Output is correct
34 Correct 6 ms 896 KB Output is correct
35 Correct 12 ms 1364 KB Output is correct
36 Correct 206 ms 14480 KB Output is correct
37 Correct 415 ms 21596 KB Output is correct
38 Correct 654 ms 28756 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 212 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 216 KB Output is correct
7 Correct 1 ms 312 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 168 ms 14584 KB Output is correct
10 Correct 10 ms 1876 KB Output is correct
11 Correct 66 ms 8000 KB Output is correct
12 Correct 16 ms 2644 KB Output is correct
13 Correct 42 ms 5272 KB Output is correct
14 Correct 1 ms 308 KB Output is correct
15 Correct 2 ms 468 KB Output is correct
16 Correct 148 ms 14556 KB Output is correct
17 Correct 1 ms 212 KB Output is correct
18 Correct 1 ms 296 KB Output is correct
19 Correct 1 ms 296 KB Output is correct
20 Correct 1 ms 304 KB Output is correct
21 Correct 1 ms 212 KB Output is correct
22 Correct 1 ms 212 KB Output is correct
23 Correct 1075 ms 50092 KB Output is correct
24 Correct 1 ms 304 KB Output is correct
25 Correct 4 ms 568 KB Output is correct
26 Correct 7 ms 960 KB Output is correct
27 Correct 8 ms 1108 KB Output is correct
28 Correct 291 ms 20172 KB Output is correct
29 Correct 509 ms 29952 KB Output is correct
30 Correct 794 ms 40292 KB Output is correct
31 Correct 1107 ms 50084 KB Output is correct
32 Correct 1 ms 212 KB Output is correct
33 Correct 1 ms 212 KB Output is correct
34 Correct 1 ms 212 KB Output is correct
35 Correct 1 ms 212 KB Output is correct
36 Correct 0 ms 212 KB Output is correct
37 Correct 0 ms 300 KB Output is correct
38 Correct 1 ms 212 KB Output is correct
39 Correct 1 ms 212 KB Output is correct
40 Correct 1 ms 212 KB Output is correct
41 Correct 1 ms 212 KB Output is correct
42 Correct 1 ms 212 KB Output is correct
43 Correct 3 ms 468 KB Output is correct
44 Correct 3 ms 596 KB Output is correct
45 Correct 185 ms 14588 KB Output is correct
46 Correct 316 ms 20860 KB Output is correct
47 Correct 459 ms 20896 KB Output is correct
48 Correct 1 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 1 ms 300 KB Output is correct
52 Correct 1 ms 212 KB Output is correct
53 Correct 1 ms 212 KB Output is correct
54 Correct 0 ms 212 KB Output is correct
55 Correct 1233 ms 72756 KB Output is correct
56 Correct 0 ms 212 KB Output is correct
57 Correct 5 ms 956 KB Output is correct
58 Correct 17 ms 2524 KB Output is correct
59 Correct 29 ms 3140 KB Output is correct
60 Correct 445 ms 36548 KB Output is correct
61 Correct 742 ms 48860 KB Output is correct
62 Correct 1006 ms 59824 KB Output is correct
63 Correct 1260 ms 73024 KB Output is correct
64 Correct 0 ms 212 KB Output is correct
65 Correct 0 ms 212 KB Output is correct
66 Correct 1 ms 212 KB Output is correct
67 Correct 379 ms 28660 KB Output is correct
68 Correct 387 ms 28672 KB Output is correct
69 Correct 385 ms 28524 KB Output is correct
70 Correct 5 ms 668 KB Output is correct
71 Correct 12 ms 1220 KB Output is correct
72 Correct 235 ms 14472 KB Output is correct
73 Correct 392 ms 21672 KB Output is correct
74 Correct 520 ms 28732 KB Output is correct
75 Correct 567 ms 28712 KB Output is correct
76 Correct 416 ms 28672 KB Output is correct
77 Correct 6 ms 852 KB Output is correct
78 Correct 11 ms 1452 KB Output is correct
79 Correct 201 ms 14480 KB Output is correct
80 Correct 381 ms 21604 KB Output is correct
81 Correct 569 ms 28708 KB Output is correct
82 Correct 1 ms 212 KB Output is correct
83 Correct 1 ms 212 KB Output is correct
84 Correct 1 ms 212 KB Output is correct
85 Correct 686 ms 29528 KB Output is correct
86 Correct 559 ms 29348 KB Output is correct
87 Correct 633 ms 29384 KB Output is correct
88 Correct 464 ms 24772 KB Output is correct
89 Correct 320 ms 19148 KB Output is correct
90 Correct 614 ms 22384 KB Output is correct
91 Correct 401 ms 22376 KB Output is correct
92 Correct 477 ms 28676 KB Output is correct
93 Correct 544 ms 28600 KB Output is correct
94 Correct 649 ms 28576 KB Output is correct
95 Correct 675 ms 28648 KB Output is correct
96 Correct 0 ms 212 KB Output is correct
97 Correct 24 ms 2644 KB Output is correct
98 Correct 127 ms 10252 KB Output is correct
99 Correct 578 ms 29608 KB Output is correct
100 Correct 13 ms 1520 KB Output is correct
101 Correct 73 ms 6096 KB Output is correct
102 Correct 226 ms 11776 KB Output is correct
103 Correct 168 ms 12244 KB Output is correct
104 Correct 266 ms 16452 KB Output is correct
105 Correct 372 ms 20828 KB Output is correct
106 Correct 591 ms 25196 KB Output is correct
107 Correct 691 ms 29632 KB Output is correct
108 Correct 1 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 1 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 300 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 3 ms 680 KB Output is correct
121 Correct 173 ms 14588 KB Output is correct
122 Correct 319 ms 20884 KB Output is correct
123 Correct 323 ms 20836 KB Output is correct
124 Correct 1 ms 212 KB Output is correct
125 Correct 1 ms 212 KB Output is correct
126 Correct 1 ms 212 KB Output is correct
127 Correct 421 ms 28684 KB Output is correct
128 Correct 391 ms 28728 KB Output is correct
129 Correct 422 ms 28584 KB Output is correct
130 Correct 4 ms 724 KB Output is correct
131 Correct 9 ms 1136 KB Output is correct
132 Correct 251 ms 14576 KB Output is correct
133 Correct 409 ms 21680 KB Output is correct
134 Correct 547 ms 28672 KB Output is correct
135 Correct 454 ms 29236 KB Output is correct
136 Correct 494 ms 29196 KB Output is correct
137 Correct 698 ms 29380 KB Output is correct
138 Correct 704 ms 28036 KB Output is correct
139 Correct 613 ms 25148 KB Output is correct
140 Correct 1 ms 212 KB Output is correct
141 Correct 61 ms 5152 KB Output is correct
142 Correct 30 ms 2764 KB Output is correct
143 Correct 133 ms 8636 KB Output is correct
144 Correct 255 ms 14036 KB Output is correct
145 Correct 235 ms 14900 KB Output is correct
146 Correct 408 ms 18824 KB Output is correct
147 Correct 617 ms 22508 KB Output is correct
148 Correct 695 ms 25668 KB Output is correct
149 Correct 810 ms 29576 KB Output is correct
150 Correct 737 ms 28592 KB Output is correct
151 Correct 452 ms 28640 KB Output is correct
152 Correct 6 ms 896 KB Output is correct
153 Correct 12 ms 1364 KB Output is correct
154 Correct 206 ms 14480 KB Output is correct
155 Correct 415 ms 21596 KB Output is correct
156 Correct 654 ms 28756 KB Output is correct
157 Correct 1 ms 212 KB Output is correct
158 Correct 1 ms 212 KB Output is correct
159 Correct 1 ms 212 KB Output is correct
160 Correct 1 ms 296 KB Output is correct
161 Correct 1739 ms 92860 KB Output is correct
162 Correct 679 ms 29564 KB Output is correct
163 Correct 859 ms 45620 KB Output is correct
164 Correct 920 ms 45496 KB Output is correct
165 Correct 1367 ms 74140 KB Output is correct
166 Correct 1676 ms 81960 KB Output is correct
167 Correct 241 ms 14844 KB Output is correct
168 Correct 141 ms 11000 KB Output is correct
169 Correct 497 ms 26156 KB Output is correct
170 Correct 1182 ms 48372 KB Output is correct
171 Correct 1483 ms 61680 KB Output is correct
172 Correct 693 ms 43260 KB Output is correct
173 Correct 966 ms 52036 KB Output is correct
174 Correct 1119 ms 59896 KB Output is correct
175 Correct 1416 ms 68984 KB Output is correct
176 Correct 1573 ms 77892 KB Output is correct
177 Correct 1939 ms 86476 KB Output is correct