답안 #602396

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
602396 2022-07-23T03:32:04 Z rrrr10000 분수 공원 (IOI21_parks) C++17
100 / 100
993 ms 44300 KB
#include "parks.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll,ll> P;
typedef tuple<ll,ll,ll> PP;
typedef vector<ll> vi;
typedef vector<vi> vvi;
typedef vector<bool> vb;
typedef vector<P> vp;
typedef vector<vp> vvp;
#define rep(i,n) for(ll i=0;i<(ll)(n);i++)
#define REP(i,k,n) for(ll i=(ll)(k);i<(ll)(n);i++)
#define fi first
#define se second
#define pb emplace_back
#define all(a) a.begin(),a.end()
#define lb(v,k) (lower_bound(all(v),k)-v.begin())
template<class T> bool chmax(T &a,T b){if(a<b){a=b;return true;}return false;}
template<class T> bool chmin(T &a,T b){if(a>b){a=b;return true;}return false;}
template<class T> void out(T a){cout<<a<<endl;}
template<class T> void outv(T v){rep(i,v.size()){if(i)cout<<' ';cout<<v[i];}cout<<endl;}
vi dx={2,0,-2,0},dy={0,2,0,-2};
ll mx=200005;
int construct_roads(std::vector<int> X, std::vector<int> Y) {
    if (X.size() == 1) {
	    build({}, {}, {}, {});
        return 1;
    }
    ll n=X.size();
    map<P,ll> mp;
    rep(i,n)mp[P(X[i],Y[i])]=i;
    vp edge;
    rep(i,n)rep(j,2){
        ll nx=X[i]+dx[j],ny=Y[i]+dy[j];
        if(mp.count(P(nx,ny)))edge.pb(i,mp[P(nx,ny)]);
    }
    {
        vvi g(n);
        for(auto x:edge){
            g[x.fi].pb(x.se);
            g[x.se].pb(x.fi);
        }
        queue<ll> que;
        vb done(n,false);
        done[0]=true;
        que.push(0);
        while(!que.empty()){
            ll t=que.front();que.pop();
            for(ll x:g[t])if(!done[x]){
                done[x]=true;que.push(x);
            }
        }
        rep(i,n)if(!done[i])return 0;
    }
    for(auto &x:edge)if(x.fi>x.se)swap(x.fi,x.se);
    sort(all(edge));
    vb use(edge.size(),true);
    vp e;
    vi ddx={2,0,2},ddy={0,2,2};
    rep(i,n){
        vi al;
        al.pb(i);
        rep(j,3)if(mp.count(P(X[i]+ddx[j],Y[i]+ddy[j])))al.pb(mp[P(X[i]+ddx[j],Y[i]+ddy[j])]);
        if(al.size()<=3){
            rep(j,3)rep(k,j)if(abs(X[al[j]]-X[al[k]])+abs(Y[al[j]]-Y[al[k]])==2)e.pb(al[j],al[k]);
        }
        else{
            vp t1={P(0,1),P(0,2),P(1,3)},t2={P(0,1),P(1,3),P(2,3)};
            if((X[i]+Y[i]+2)%4==2)use[lb(edge,P(min(al[2],al[3]),max(al[2],al[3])))]=false;
            else use[lb(edge,P(min(al[0],al[2]),max(al[0],al[2])))]=false;
        }
    }
    vector<int> u, v, a, b;
    rep(i,edge.size())if(use[i]){
        P x=edge[i];
        u.pb(x.fi);v.pb(x.se);
        P p((X[x.fi]+X[x.se])/2,(Y[x.fi]+Y[x.se])/2);
        if(X[x.fi]==X[x.se]){
            p.fi++;
            if((p.fi+p.se)%4==2)p.fi-=2;
        }
        else{
            p.se++;
            if((p.fi+p.se)%4==0)p.se-=2;
        }
        a.pb(p.fi);b.pb(p.se);
    }
    build(u,v,a,b);
    return 1;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 1 ms 300 KB Output is correct
7 Correct 1 ms 296 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 243 ms 17996 KB Output is correct
10 Correct 13 ms 2028 KB Output is correct
11 Correct 85 ms 9468 KB Output is correct
12 Correct 20 ms 2824 KB Output is correct
13 Correct 36 ms 7080 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 2 ms 504 KB Output is correct
16 Correct 212 ms 18460 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 1 ms 300 KB Output is correct
7 Correct 1 ms 296 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 243 ms 17996 KB Output is correct
10 Correct 13 ms 2028 KB Output is correct
11 Correct 85 ms 9468 KB Output is correct
12 Correct 20 ms 2824 KB Output is correct
13 Correct 36 ms 7080 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 2 ms 504 KB Output is correct
16 Correct 212 ms 18460 KB Output is correct
17 Correct 1 ms 304 KB Output is correct
18 Correct 1 ms 212 KB Output is correct
19 Correct 1 ms 212 KB Output is correct
20 Correct 1 ms 212 KB Output is correct
21 Correct 1 ms 212 KB Output is correct
22 Correct 1 ms 212 KB Output is correct
23 Correct 815 ms 37788 KB Output is correct
24 Correct 0 ms 304 KB Output is correct
25 Correct 2 ms 468 KB Output is correct
26 Correct 3 ms 852 KB Output is correct
27 Correct 4 ms 980 KB Output is correct
28 Correct 292 ms 15804 KB Output is correct
29 Correct 396 ms 22912 KB Output is correct
30 Correct 597 ms 31544 KB Output is correct
31 Correct 803 ms 37788 KB Output is correct
32 Correct 1 ms 212 KB Output is correct
33 Correct 0 ms 212 KB Output is correct
34 Correct 0 ms 340 KB Output is correct
35 Correct 1 ms 212 KB Output is correct
36 Correct 0 ms 212 KB Output is correct
37 Correct 1 ms 212 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 2 ms 596 KB Output is correct
44 Correct 3 ms 724 KB Output is correct
45 Correct 250 ms 19728 KB Output is correct
46 Correct 460 ms 29820 KB Output is correct
47 Correct 466 ms 30012 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 1 ms 300 KB Output is correct
7 Correct 1 ms 296 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 243 ms 17996 KB Output is correct
10 Correct 13 ms 2028 KB Output is correct
11 Correct 85 ms 9468 KB Output is correct
12 Correct 20 ms 2824 KB Output is correct
13 Correct 36 ms 7080 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 2 ms 504 KB Output is correct
16 Correct 212 ms 18460 KB Output is correct
17 Correct 1 ms 304 KB Output is correct
18 Correct 1 ms 212 KB Output is correct
19 Correct 1 ms 212 KB Output is correct
20 Correct 1 ms 212 KB Output is correct
21 Correct 1 ms 212 KB Output is correct
22 Correct 1 ms 212 KB Output is correct
23 Correct 815 ms 37788 KB Output is correct
24 Correct 0 ms 304 KB Output is correct
25 Correct 2 ms 468 KB Output is correct
26 Correct 3 ms 852 KB Output is correct
27 Correct 4 ms 980 KB Output is correct
28 Correct 292 ms 15804 KB Output is correct
29 Correct 396 ms 22912 KB Output is correct
30 Correct 597 ms 31544 KB Output is correct
31 Correct 803 ms 37788 KB Output is correct
32 Correct 1 ms 212 KB Output is correct
33 Correct 0 ms 212 KB Output is correct
34 Correct 0 ms 340 KB Output is correct
35 Correct 1 ms 212 KB Output is correct
36 Correct 0 ms 212 KB Output is correct
37 Correct 1 ms 212 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 2 ms 596 KB Output is correct
44 Correct 3 ms 724 KB Output is correct
45 Correct 250 ms 19728 KB Output is correct
46 Correct 460 ms 29820 KB Output is correct
47 Correct 466 ms 30012 KB Output is correct
48 Correct 1 ms 340 KB Output is correct
49 Correct 1 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 300 KB Output is correct
53 Correct 0 ms 212 KB Output is correct
54 Correct 0 ms 304 KB Output is correct
55 Correct 850 ms 38232 KB Output is correct
56 Correct 1 ms 212 KB Output is correct
57 Correct 4 ms 596 KB Output is correct
58 Correct 13 ms 1464 KB Output is correct
59 Correct 10 ms 2172 KB Output is correct
60 Correct 335 ms 19728 KB Output is correct
61 Correct 527 ms 27132 KB Output is correct
62 Correct 678 ms 33612 KB Output is correct
63 Correct 893 ms 37796 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 296 KB Output is correct
67 Correct 594 ms 35568 KB Output is correct
68 Correct 566 ms 34664 KB Output is correct
69 Correct 545 ms 34036 KB Output is correct
70 Correct 3 ms 852 KB Output is correct
71 Correct 7 ms 1576 KB Output is correct
72 Correct 264 ms 19012 KB Output is correct
73 Correct 464 ms 30448 KB Output is correct
74 Correct 705 ms 39280 KB Output is correct
75 Correct 726 ms 42852 KB Output is correct
76 Correct 551 ms 34944 KB Output is correct
77 Correct 4 ms 1108 KB Output is correct
78 Correct 8 ms 1720 KB Output is correct
79 Correct 270 ms 20744 KB Output is correct
80 Correct 491 ms 31464 KB Output is correct
81 Correct 727 ms 42028 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 1 ms 300 KB Output is correct
7 Correct 1 ms 296 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 243 ms 17996 KB Output is correct
10 Correct 13 ms 2028 KB Output is correct
11 Correct 85 ms 9468 KB Output is correct
12 Correct 20 ms 2824 KB Output is correct
13 Correct 36 ms 7080 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 2 ms 504 KB Output is correct
16 Correct 212 ms 18460 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 653 ms 34648 KB Output is correct
21 Correct 777 ms 38820 KB Output is correct
22 Correct 675 ms 34472 KB Output is correct
23 Correct 511 ms 29860 KB Output is correct
24 Correct 281 ms 20992 KB Output is correct
25 Correct 396 ms 30220 KB Output is correct
26 Correct 356 ms 30220 KB Output is correct
27 Correct 668 ms 35520 KB Output is correct
28 Correct 684 ms 37088 KB Output is correct
29 Correct 771 ms 37180 KB Output is correct
30 Correct 776 ms 35556 KB Output is correct
31 Correct 0 ms 212 KB Output is correct
32 Correct 33 ms 3032 KB Output is correct
33 Correct 99 ms 10640 KB Output is correct
34 Correct 666 ms 38800 KB Output is correct
35 Correct 11 ms 1880 KB Output is correct
36 Correct 59 ms 8136 KB Output is correct
37 Correct 146 ms 15868 KB Output is correct
38 Correct 216 ms 16176 KB Output is correct
39 Correct 341 ms 21464 KB Output is correct
40 Correct 487 ms 27728 KB Output is correct
41 Correct 633 ms 33892 KB Output is correct
42 Correct 790 ms 40692 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 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 1 ms 212 KB Output is correct
51 Correct 0 ms 308 KB Output is correct
52 Correct 0 ms 296 KB Output is correct
53 Correct 1 ms 212 KB Output is correct
54 Correct 2 ms 596 KB Output is correct
55 Correct 3 ms 692 KB Output is correct
56 Correct 255 ms 19792 KB Output is correct
57 Correct 439 ms 29924 KB Output is correct
58 Correct 440 ms 29944 KB Output is correct
59 Correct 0 ms 212 KB Output is correct
60 Correct 1 ms 304 KB Output is correct
61 Correct 0 ms 212 KB Output is correct
62 Correct 552 ms 35636 KB Output is correct
63 Correct 543 ms 34708 KB Output is correct
64 Correct 612 ms 34084 KB Output is correct
65 Correct 3 ms 852 KB Output is correct
66 Correct 7 ms 1492 KB Output is correct
67 Correct 263 ms 19084 KB Output is correct
68 Correct 471 ms 30388 KB Output is correct
69 Correct 711 ms 39076 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 1 ms 300 KB Output is correct
7 Correct 1 ms 296 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 243 ms 17996 KB Output is correct
10 Correct 13 ms 2028 KB Output is correct
11 Correct 85 ms 9468 KB Output is correct
12 Correct 20 ms 2824 KB Output is correct
13 Correct 36 ms 7080 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 2 ms 504 KB Output is correct
16 Correct 212 ms 18460 KB Output is correct
17 Correct 630 ms 35632 KB Output is correct
18 Correct 609 ms 35148 KB Output is correct
19 Correct 692 ms 36828 KB Output is correct
20 Correct 835 ms 43928 KB Output is correct
21 Correct 657 ms 35736 KB Output is correct
22 Correct 1 ms 212 KB Output is correct
23 Correct 78 ms 6932 KB Output is correct
24 Correct 22 ms 3536 KB Output is correct
25 Correct 93 ms 11732 KB Output is correct
26 Correct 198 ms 19824 KB Output is correct
27 Correct 318 ms 21904 KB Output is correct
28 Correct 431 ms 28408 KB Output is correct
29 Correct 557 ms 32920 KB Output is correct
30 Correct 696 ms 37728 KB Output is correct
31 Correct 854 ms 44300 KB Output is correct
32 Correct 711 ms 42960 KB Output is correct
33 Correct 543 ms 34920 KB Output is correct
34 Correct 4 ms 1108 KB Output is correct
35 Correct 8 ms 1744 KB Output is correct
36 Correct 276 ms 20816 KB Output is correct
37 Correct 468 ms 31508 KB Output is correct
38 Correct 723 ms 41932 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 1 ms 300 KB Output is correct
7 Correct 1 ms 296 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 243 ms 17996 KB Output is correct
10 Correct 13 ms 2028 KB Output is correct
11 Correct 85 ms 9468 KB Output is correct
12 Correct 20 ms 2824 KB Output is correct
13 Correct 36 ms 7080 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 2 ms 504 KB Output is correct
16 Correct 212 ms 18460 KB Output is correct
17 Correct 1 ms 304 KB Output is correct
18 Correct 1 ms 212 KB Output is correct
19 Correct 1 ms 212 KB Output is correct
20 Correct 1 ms 212 KB Output is correct
21 Correct 1 ms 212 KB Output is correct
22 Correct 1 ms 212 KB Output is correct
23 Correct 815 ms 37788 KB Output is correct
24 Correct 0 ms 304 KB Output is correct
25 Correct 2 ms 468 KB Output is correct
26 Correct 3 ms 852 KB Output is correct
27 Correct 4 ms 980 KB Output is correct
28 Correct 292 ms 15804 KB Output is correct
29 Correct 396 ms 22912 KB Output is correct
30 Correct 597 ms 31544 KB Output is correct
31 Correct 803 ms 37788 KB Output is correct
32 Correct 1 ms 212 KB Output is correct
33 Correct 0 ms 212 KB Output is correct
34 Correct 0 ms 340 KB Output is correct
35 Correct 1 ms 212 KB Output is correct
36 Correct 0 ms 212 KB Output is correct
37 Correct 1 ms 212 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 2 ms 596 KB Output is correct
44 Correct 3 ms 724 KB Output is correct
45 Correct 250 ms 19728 KB Output is correct
46 Correct 460 ms 29820 KB Output is correct
47 Correct 466 ms 30012 KB Output is correct
48 Correct 1 ms 340 KB Output is correct
49 Correct 1 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 300 KB Output is correct
53 Correct 0 ms 212 KB Output is correct
54 Correct 0 ms 304 KB Output is correct
55 Correct 850 ms 38232 KB Output is correct
56 Correct 1 ms 212 KB Output is correct
57 Correct 4 ms 596 KB Output is correct
58 Correct 13 ms 1464 KB Output is correct
59 Correct 10 ms 2172 KB Output is correct
60 Correct 335 ms 19728 KB Output is correct
61 Correct 527 ms 27132 KB Output is correct
62 Correct 678 ms 33612 KB Output is correct
63 Correct 893 ms 37796 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 296 KB Output is correct
67 Correct 594 ms 35568 KB Output is correct
68 Correct 566 ms 34664 KB Output is correct
69 Correct 545 ms 34036 KB Output is correct
70 Correct 3 ms 852 KB Output is correct
71 Correct 7 ms 1576 KB Output is correct
72 Correct 264 ms 19012 KB Output is correct
73 Correct 464 ms 30448 KB Output is correct
74 Correct 705 ms 39280 KB Output is correct
75 Correct 726 ms 42852 KB Output is correct
76 Correct 551 ms 34944 KB Output is correct
77 Correct 4 ms 1108 KB Output is correct
78 Correct 8 ms 1720 KB Output is correct
79 Correct 270 ms 20744 KB Output is correct
80 Correct 491 ms 31464 KB Output is correct
81 Correct 727 ms 42028 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 653 ms 34648 KB Output is correct
86 Correct 777 ms 38820 KB Output is correct
87 Correct 675 ms 34472 KB Output is correct
88 Correct 511 ms 29860 KB Output is correct
89 Correct 281 ms 20992 KB Output is correct
90 Correct 396 ms 30220 KB Output is correct
91 Correct 356 ms 30220 KB Output is correct
92 Correct 668 ms 35520 KB Output is correct
93 Correct 684 ms 37088 KB Output is correct
94 Correct 771 ms 37180 KB Output is correct
95 Correct 776 ms 35556 KB Output is correct
96 Correct 0 ms 212 KB Output is correct
97 Correct 33 ms 3032 KB Output is correct
98 Correct 99 ms 10640 KB Output is correct
99 Correct 666 ms 38800 KB Output is correct
100 Correct 11 ms 1880 KB Output is correct
101 Correct 59 ms 8136 KB Output is correct
102 Correct 146 ms 15868 KB Output is correct
103 Correct 216 ms 16176 KB Output is correct
104 Correct 341 ms 21464 KB Output is correct
105 Correct 487 ms 27728 KB Output is correct
106 Correct 633 ms 33892 KB Output is correct
107 Correct 790 ms 40692 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 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 1 ms 212 KB Output is correct
116 Correct 0 ms 308 KB Output is correct
117 Correct 0 ms 296 KB Output is correct
118 Correct 1 ms 212 KB Output is correct
119 Correct 2 ms 596 KB Output is correct
120 Correct 3 ms 692 KB Output is correct
121 Correct 255 ms 19792 KB Output is correct
122 Correct 439 ms 29924 KB Output is correct
123 Correct 440 ms 29944 KB Output is correct
124 Correct 0 ms 212 KB Output is correct
125 Correct 1 ms 304 KB Output is correct
126 Correct 0 ms 212 KB Output is correct
127 Correct 552 ms 35636 KB Output is correct
128 Correct 543 ms 34708 KB Output is correct
129 Correct 612 ms 34084 KB Output is correct
130 Correct 3 ms 852 KB Output is correct
131 Correct 7 ms 1492 KB Output is correct
132 Correct 263 ms 19084 KB Output is correct
133 Correct 471 ms 30388 KB Output is correct
134 Correct 711 ms 39076 KB Output is correct
135 Correct 630 ms 35632 KB Output is correct
136 Correct 609 ms 35148 KB Output is correct
137 Correct 692 ms 36828 KB Output is correct
138 Correct 835 ms 43928 KB Output is correct
139 Correct 657 ms 35736 KB Output is correct
140 Correct 1 ms 212 KB Output is correct
141 Correct 78 ms 6932 KB Output is correct
142 Correct 22 ms 3536 KB Output is correct
143 Correct 93 ms 11732 KB Output is correct
144 Correct 198 ms 19824 KB Output is correct
145 Correct 318 ms 21904 KB Output is correct
146 Correct 431 ms 28408 KB Output is correct
147 Correct 557 ms 32920 KB Output is correct
148 Correct 696 ms 37728 KB Output is correct
149 Correct 854 ms 44300 KB Output is correct
150 Correct 711 ms 42960 KB Output is correct
151 Correct 543 ms 34920 KB Output is correct
152 Correct 4 ms 1108 KB Output is correct
153 Correct 8 ms 1744 KB Output is correct
154 Correct 276 ms 20816 KB Output is correct
155 Correct 468 ms 31508 KB Output is correct
156 Correct 723 ms 41932 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 0 ms 212 KB Output is correct
161 Correct 993 ms 39352 KB Output is correct
162 Correct 677 ms 38916 KB Output is correct
163 Correct 780 ms 39976 KB Output is correct
164 Correct 748 ms 40840 KB Output is correct
165 Correct 889 ms 37884 KB Output is correct
166 Correct 963 ms 37444 KB Output is correct
167 Correct 136 ms 9744 KB Output is correct
168 Correct 38 ms 6028 KB Output is correct
169 Correct 131 ms 15212 KB Output is correct
170 Correct 333 ms 28096 KB Output is correct
171 Correct 453 ms 37360 KB Output is correct
172 Correct 391 ms 19080 KB Output is correct
173 Correct 490 ms 23720 KB Output is correct
174 Correct 621 ms 27648 KB Output is correct
175 Correct 741 ms 30140 KB Output is correct
176 Correct 859 ms 34540 KB Output is correct
177 Correct 988 ms 37580 KB Output is correct