답안 #483983

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
483983 2021-11-01T17:58:32 Z rumen_m 분수 공원 (IOI21_parks) C++17
100 / 100
487 ms 57692 KB
#include "parks.h"
#include <bits/stdc++.h>
using namespace std;
struct fountains
{
    int x,y;
    int id;
};
vector <fountains> A;
vector <int> u,v,a,b;
const int maxn = 2e5+5;
bool cmp(fountains i, fountains j)
{
    if(i.y==j.y)return i.x<j.x;
    return i.y<j.y;
}
map <pair <int,int> , int> mp;
set <pair <int,int> > st;
vector <int> g[maxn];
bool vis[maxn];
void dfs(int v)
{
    vis[v] = 1;
    for(auto u: g[v])
    {
        if(!vis[u])dfs(u);
    }
}
int construct_roads(std::vector<int> x, std::vector<int> y) {

   A.resize(x.size());
   int i;
   for(i=0;i<x.size();i++)
   {
       A[i].x = x[i];
       A[i].y = y[i];
       A[i].id = i;
   }
   sort(A.begin(),A.end(),cmp);
   int n = A.size();
   for(i=0;i<n;i++)
   {
       mp[{A[i].x,A[i].y}] = i;
   }
   for(i=0;i<n;i++)
   {
       int x = A[i].x;
       int y = A[i].y;
       y-=2;
       if(mp.find({x,y})!=mp.end())
        {
            int k = mp[{x,y}];
            int px,py;

            py = y+1;
            if((y+1+x-1)%4==0)px = x-1;
            else
                px = x+1;
            if(st.find({px,py})==st.end())
                {
                    st.insert({px,py});
                    g[k].push_back(i);
            g[i].push_back(k);
            u.push_back(A[k].id);
            v.push_back(A[i].id);
            a.push_back(px);
            b.push_back(py);
                }

        }
        y+=2;
        x-=2;
         if(mp.find({x,y})!=mp.end())
        {
            int k = mp[{x,y}];
            int px,py;

            px = x+1;
            if((y-1+x+1)%4!=0)py= y-1;
            else
                py = y+1;
            if(st.find({px,py})==st.end())
                {
                    st.insert({px,py});
                    g[k].push_back(i);
            g[i].push_back(k);
             u.push_back(A[k].id);
            v.push_back(A[i].id);
            a.push_back(px);
            b.push_back(py);
                }

        }
   }
   dfs(0);
   for(i=1;i<n;i++)
   {
       if(!vis[i])return 0;
   }
   build(u,v,a,b);
   return 1;
}

Compilation message

parks.cpp: In function 'int construct_roads(std::vector<int>, std::vector<int>)':
parks.cpp:33:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   33 |    for(i=0;i<x.size();i++)
      |            ~^~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4940 KB Output is correct
2 Correct 2 ms 4940 KB Output is correct
3 Correct 3 ms 5000 KB Output is correct
4 Correct 2 ms 4940 KB Output is correct
5 Correct 3 ms 4940 KB Output is correct
6 Correct 3 ms 4940 KB Output is correct
7 Correct 4 ms 4940 KB Output is correct
8 Correct 3 ms 4940 KB Output is correct
9 Correct 150 ms 29096 KB Output is correct
10 Correct 13 ms 7500 KB Output is correct
11 Correct 71 ms 18004 KB Output is correct
12 Correct 22 ms 8900 KB Output is correct
13 Correct 48 ms 14008 KB Output is correct
14 Correct 4 ms 5196 KB Output is correct
15 Correct 4 ms 5324 KB Output is correct
16 Correct 161 ms 29160 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4940 KB Output is correct
2 Correct 2 ms 4940 KB Output is correct
3 Correct 3 ms 5000 KB Output is correct
4 Correct 2 ms 4940 KB Output is correct
5 Correct 3 ms 4940 KB Output is correct
6 Correct 3 ms 4940 KB Output is correct
7 Correct 4 ms 4940 KB Output is correct
8 Correct 3 ms 4940 KB Output is correct
9 Correct 150 ms 29096 KB Output is correct
10 Correct 13 ms 7500 KB Output is correct
11 Correct 71 ms 18004 KB Output is correct
12 Correct 22 ms 8900 KB Output is correct
13 Correct 48 ms 14008 KB Output is correct
14 Correct 4 ms 5196 KB Output is correct
15 Correct 4 ms 5324 KB Output is correct
16 Correct 161 ms 29160 KB Output is correct
17 Correct 2 ms 4940 KB Output is correct
18 Correct 2 ms 4940 KB Output is correct
19 Correct 2 ms 4940 KB Output is correct
20 Correct 3 ms 4880 KB Output is correct
21 Correct 2 ms 4940 KB Output is correct
22 Correct 3 ms 4940 KB Output is correct
23 Correct 407 ms 51548 KB Output is correct
24 Correct 2 ms 4940 KB Output is correct
25 Correct 4 ms 5196 KB Output is correct
26 Correct 5 ms 5580 KB Output is correct
27 Correct 6 ms 5708 KB Output is correct
28 Correct 138 ms 23604 KB Output is correct
29 Correct 230 ms 33032 KB Output is correct
30 Correct 297 ms 42360 KB Output is correct
31 Correct 380 ms 51564 KB Output is correct
32 Correct 3 ms 4940 KB Output is correct
33 Correct 2 ms 4940 KB Output is correct
34 Correct 2 ms 4940 KB Output is correct
35 Correct 2 ms 4940 KB Output is correct
36 Correct 2 ms 4940 KB Output is correct
37 Correct 2 ms 4940 KB Output is correct
38 Correct 3 ms 4940 KB Output is correct
39 Correct 3 ms 4992 KB Output is correct
40 Correct 3 ms 4940 KB Output is correct
41 Correct 2 ms 4940 KB Output is correct
42 Correct 3 ms 4940 KB Output is correct
43 Correct 4 ms 5324 KB Output is correct
44 Correct 8 ms 5580 KB Output is correct
45 Correct 135 ms 28796 KB Output is correct
46 Correct 190 ms 39552 KB Output is correct
47 Correct 190 ms 39564 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4940 KB Output is correct
2 Correct 2 ms 4940 KB Output is correct
3 Correct 3 ms 5000 KB Output is correct
4 Correct 2 ms 4940 KB Output is correct
5 Correct 3 ms 4940 KB Output is correct
6 Correct 3 ms 4940 KB Output is correct
7 Correct 4 ms 4940 KB Output is correct
8 Correct 3 ms 4940 KB Output is correct
9 Correct 150 ms 29096 KB Output is correct
10 Correct 13 ms 7500 KB Output is correct
11 Correct 71 ms 18004 KB Output is correct
12 Correct 22 ms 8900 KB Output is correct
13 Correct 48 ms 14008 KB Output is correct
14 Correct 4 ms 5196 KB Output is correct
15 Correct 4 ms 5324 KB Output is correct
16 Correct 161 ms 29160 KB Output is correct
17 Correct 2 ms 4940 KB Output is correct
18 Correct 2 ms 4940 KB Output is correct
19 Correct 2 ms 4940 KB Output is correct
20 Correct 3 ms 4880 KB Output is correct
21 Correct 2 ms 4940 KB Output is correct
22 Correct 3 ms 4940 KB Output is correct
23 Correct 407 ms 51548 KB Output is correct
24 Correct 2 ms 4940 KB Output is correct
25 Correct 4 ms 5196 KB Output is correct
26 Correct 5 ms 5580 KB Output is correct
27 Correct 6 ms 5708 KB Output is correct
28 Correct 138 ms 23604 KB Output is correct
29 Correct 230 ms 33032 KB Output is correct
30 Correct 297 ms 42360 KB Output is correct
31 Correct 380 ms 51564 KB Output is correct
32 Correct 3 ms 4940 KB Output is correct
33 Correct 2 ms 4940 KB Output is correct
34 Correct 2 ms 4940 KB Output is correct
35 Correct 2 ms 4940 KB Output is correct
36 Correct 2 ms 4940 KB Output is correct
37 Correct 2 ms 4940 KB Output is correct
38 Correct 3 ms 4940 KB Output is correct
39 Correct 3 ms 4992 KB Output is correct
40 Correct 3 ms 4940 KB Output is correct
41 Correct 2 ms 4940 KB Output is correct
42 Correct 3 ms 4940 KB Output is correct
43 Correct 4 ms 5324 KB Output is correct
44 Correct 8 ms 5580 KB Output is correct
45 Correct 135 ms 28796 KB Output is correct
46 Correct 190 ms 39552 KB Output is correct
47 Correct 190 ms 39564 KB Output is correct
48 Correct 2 ms 4940 KB Output is correct
49 Correct 3 ms 4940 KB Output is correct
50 Correct 3 ms 4992 KB Output is correct
51 Correct 4 ms 4940 KB Output is correct
52 Correct 3 ms 4940 KB Output is correct
53 Correct 3 ms 4940 KB Output is correct
54 Correct 3 ms 5000 KB Output is correct
55 Correct 371 ms 50968 KB Output is correct
56 Correct 4 ms 4940 KB Output is correct
57 Correct 5 ms 5324 KB Output is correct
58 Correct 10 ms 6424 KB Output is correct
59 Correct 12 ms 6928 KB Output is correct
60 Correct 169 ms 27924 KB Output is correct
61 Correct 261 ms 35992 KB Output is correct
62 Correct 301 ms 43032 KB Output is correct
63 Correct 358 ms 51096 KB Output is correct
64 Correct 3 ms 4940 KB Output is correct
65 Correct 4 ms 4940 KB Output is correct
66 Correct 3 ms 4940 KB Output is correct
67 Correct 384 ms 53352 KB Output is correct
68 Correct 362 ms 51596 KB Output is correct
69 Correct 347 ms 52296 KB Output is correct
70 Correct 6 ms 5696 KB Output is correct
71 Correct 10 ms 6544 KB Output is correct
72 Correct 134 ms 28400 KB Output is correct
73 Correct 210 ms 40216 KB Output is correct
74 Correct 292 ms 51948 KB Output is correct
75 Correct 378 ms 56408 KB Output is correct
76 Correct 368 ms 53400 KB Output is correct
77 Correct 7 ms 5964 KB Output is correct
78 Correct 12 ms 6732 KB Output is correct
79 Correct 148 ms 29524 KB Output is correct
80 Correct 240 ms 42008 KB Output is correct
81 Correct 309 ms 54296 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4940 KB Output is correct
2 Correct 2 ms 4940 KB Output is correct
3 Correct 3 ms 5000 KB Output is correct
4 Correct 2 ms 4940 KB Output is correct
5 Correct 3 ms 4940 KB Output is correct
6 Correct 3 ms 4940 KB Output is correct
7 Correct 4 ms 4940 KB Output is correct
8 Correct 3 ms 4940 KB Output is correct
9 Correct 150 ms 29096 KB Output is correct
10 Correct 13 ms 7500 KB Output is correct
11 Correct 71 ms 18004 KB Output is correct
12 Correct 22 ms 8900 KB Output is correct
13 Correct 48 ms 14008 KB Output is correct
14 Correct 4 ms 5196 KB Output is correct
15 Correct 4 ms 5324 KB Output is correct
16 Correct 161 ms 29160 KB Output is correct
17 Correct 3 ms 4940 KB Output is correct
18 Correct 3 ms 4940 KB Output is correct
19 Correct 3 ms 4996 KB Output is correct
20 Correct 314 ms 54736 KB Output is correct
21 Correct 324 ms 52464 KB Output is correct
22 Correct 332 ms 52536 KB Output is correct
23 Correct 250 ms 45816 KB Output is correct
24 Correct 148 ms 24580 KB Output is correct
25 Correct 230 ms 43336 KB Output is correct
26 Correct 239 ms 43544 KB Output is correct
27 Correct 324 ms 49944 KB Output is correct
28 Correct 326 ms 49840 KB Output is correct
29 Correct 273 ms 49796 KB Output is correct
30 Correct 290 ms 49896 KB Output is correct
31 Correct 3 ms 4940 KB Output is correct
32 Correct 26 ms 8664 KB Output is correct
33 Correct 75 ms 15172 KB Output is correct
34 Correct 358 ms 54672 KB Output is correct
35 Correct 15 ms 6928 KB Output is correct
36 Correct 67 ms 14784 KB Output is correct
37 Correct 138 ms 24560 KB Output is correct
38 Correct 159 ms 23528 KB Output is correct
39 Correct 209 ms 30364 KB Output is correct
40 Correct 325 ms 37312 KB Output is correct
41 Correct 356 ms 44372 KB Output is correct
42 Correct 438 ms 51340 KB Output is correct
43 Correct 2 ms 4940 KB Output is correct
44 Correct 2 ms 4940 KB Output is correct
45 Correct 2 ms 4940 KB Output is correct
46 Correct 2 ms 4940 KB Output is correct
47 Correct 2 ms 4940 KB Output is correct
48 Correct 2 ms 4940 KB Output is correct
49 Correct 2 ms 4940 KB Output is correct
50 Correct 3 ms 4940 KB Output is correct
51 Correct 2 ms 4940 KB Output is correct
52 Correct 2 ms 4940 KB Output is correct
53 Correct 2 ms 4940 KB Output is correct
54 Correct 4 ms 5388 KB Output is correct
55 Correct 7 ms 5580 KB Output is correct
56 Correct 171 ms 28764 KB Output is correct
57 Correct 189 ms 39556 KB Output is correct
58 Correct 203 ms 39556 KB Output is correct
59 Correct 2 ms 4940 KB Output is correct
60 Correct 2 ms 4952 KB Output is correct
61 Correct 2 ms 4940 KB Output is correct
62 Correct 387 ms 53396 KB Output is correct
63 Correct 356 ms 51672 KB Output is correct
64 Correct 347 ms 52248 KB Output is correct
65 Correct 7 ms 5708 KB Output is correct
66 Correct 13 ms 6484 KB Output is correct
67 Correct 133 ms 28320 KB Output is correct
68 Correct 222 ms 40248 KB Output is correct
69 Correct 294 ms 51992 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4940 KB Output is correct
2 Correct 2 ms 4940 KB Output is correct
3 Correct 3 ms 5000 KB Output is correct
4 Correct 2 ms 4940 KB Output is correct
5 Correct 3 ms 4940 KB Output is correct
6 Correct 3 ms 4940 KB Output is correct
7 Correct 4 ms 4940 KB Output is correct
8 Correct 3 ms 4940 KB Output is correct
9 Correct 150 ms 29096 KB Output is correct
10 Correct 13 ms 7500 KB Output is correct
11 Correct 71 ms 18004 KB Output is correct
12 Correct 22 ms 8900 KB Output is correct
13 Correct 48 ms 14008 KB Output is correct
14 Correct 4 ms 5196 KB Output is correct
15 Correct 4 ms 5324 KB Output is correct
16 Correct 161 ms 29160 KB Output is correct
17 Correct 325 ms 53704 KB Output is correct
18 Correct 313 ms 53152 KB Output is correct
19 Correct 328 ms 54292 KB Output is correct
20 Correct 339 ms 57364 KB Output is correct
21 Correct 324 ms 47828 KB Output is correct
22 Correct 2 ms 4940 KB Output is correct
23 Correct 58 ms 12824 KB Output is correct
24 Correct 30 ms 9220 KB Output is correct
25 Correct 116 ms 19684 KB Output is correct
26 Correct 194 ms 29976 KB Output is correct
27 Correct 230 ms 31176 KB Output is correct
28 Correct 276 ms 38044 KB Output is correct
29 Correct 346 ms 44752 KB Output is correct
30 Correct 409 ms 50684 KB Output is correct
31 Correct 487 ms 57692 KB Output is correct
32 Correct 389 ms 56356 KB Output is correct
33 Correct 339 ms 53440 KB Output is correct
34 Correct 8 ms 5964 KB Output is correct
35 Correct 11 ms 6864 KB Output is correct
36 Correct 146 ms 29528 KB Output is correct
37 Correct 287 ms 42088 KB Output is correct
38 Correct 312 ms 54244 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4940 KB Output is correct
2 Correct 2 ms 4940 KB Output is correct
3 Correct 3 ms 5000 KB Output is correct
4 Correct 2 ms 4940 KB Output is correct
5 Correct 3 ms 4940 KB Output is correct
6 Correct 3 ms 4940 KB Output is correct
7 Correct 4 ms 4940 KB Output is correct
8 Correct 3 ms 4940 KB Output is correct
9 Correct 150 ms 29096 KB Output is correct
10 Correct 13 ms 7500 KB Output is correct
11 Correct 71 ms 18004 KB Output is correct
12 Correct 22 ms 8900 KB Output is correct
13 Correct 48 ms 14008 KB Output is correct
14 Correct 4 ms 5196 KB Output is correct
15 Correct 4 ms 5324 KB Output is correct
16 Correct 161 ms 29160 KB Output is correct
17 Correct 2 ms 4940 KB Output is correct
18 Correct 2 ms 4940 KB Output is correct
19 Correct 2 ms 4940 KB Output is correct
20 Correct 3 ms 4880 KB Output is correct
21 Correct 2 ms 4940 KB Output is correct
22 Correct 3 ms 4940 KB Output is correct
23 Correct 407 ms 51548 KB Output is correct
24 Correct 2 ms 4940 KB Output is correct
25 Correct 4 ms 5196 KB Output is correct
26 Correct 5 ms 5580 KB Output is correct
27 Correct 6 ms 5708 KB Output is correct
28 Correct 138 ms 23604 KB Output is correct
29 Correct 230 ms 33032 KB Output is correct
30 Correct 297 ms 42360 KB Output is correct
31 Correct 380 ms 51564 KB Output is correct
32 Correct 3 ms 4940 KB Output is correct
33 Correct 2 ms 4940 KB Output is correct
34 Correct 2 ms 4940 KB Output is correct
35 Correct 2 ms 4940 KB Output is correct
36 Correct 2 ms 4940 KB Output is correct
37 Correct 2 ms 4940 KB Output is correct
38 Correct 3 ms 4940 KB Output is correct
39 Correct 3 ms 4992 KB Output is correct
40 Correct 3 ms 4940 KB Output is correct
41 Correct 2 ms 4940 KB Output is correct
42 Correct 3 ms 4940 KB Output is correct
43 Correct 4 ms 5324 KB Output is correct
44 Correct 8 ms 5580 KB Output is correct
45 Correct 135 ms 28796 KB Output is correct
46 Correct 190 ms 39552 KB Output is correct
47 Correct 190 ms 39564 KB Output is correct
48 Correct 2 ms 4940 KB Output is correct
49 Correct 3 ms 4940 KB Output is correct
50 Correct 3 ms 4992 KB Output is correct
51 Correct 4 ms 4940 KB Output is correct
52 Correct 3 ms 4940 KB Output is correct
53 Correct 3 ms 4940 KB Output is correct
54 Correct 3 ms 5000 KB Output is correct
55 Correct 371 ms 50968 KB Output is correct
56 Correct 4 ms 4940 KB Output is correct
57 Correct 5 ms 5324 KB Output is correct
58 Correct 10 ms 6424 KB Output is correct
59 Correct 12 ms 6928 KB Output is correct
60 Correct 169 ms 27924 KB Output is correct
61 Correct 261 ms 35992 KB Output is correct
62 Correct 301 ms 43032 KB Output is correct
63 Correct 358 ms 51096 KB Output is correct
64 Correct 3 ms 4940 KB Output is correct
65 Correct 4 ms 4940 KB Output is correct
66 Correct 3 ms 4940 KB Output is correct
67 Correct 384 ms 53352 KB Output is correct
68 Correct 362 ms 51596 KB Output is correct
69 Correct 347 ms 52296 KB Output is correct
70 Correct 6 ms 5696 KB Output is correct
71 Correct 10 ms 6544 KB Output is correct
72 Correct 134 ms 28400 KB Output is correct
73 Correct 210 ms 40216 KB Output is correct
74 Correct 292 ms 51948 KB Output is correct
75 Correct 378 ms 56408 KB Output is correct
76 Correct 368 ms 53400 KB Output is correct
77 Correct 7 ms 5964 KB Output is correct
78 Correct 12 ms 6732 KB Output is correct
79 Correct 148 ms 29524 KB Output is correct
80 Correct 240 ms 42008 KB Output is correct
81 Correct 309 ms 54296 KB Output is correct
82 Correct 3 ms 4940 KB Output is correct
83 Correct 3 ms 4940 KB Output is correct
84 Correct 3 ms 4996 KB Output is correct
85 Correct 314 ms 54736 KB Output is correct
86 Correct 324 ms 52464 KB Output is correct
87 Correct 332 ms 52536 KB Output is correct
88 Correct 250 ms 45816 KB Output is correct
89 Correct 148 ms 24580 KB Output is correct
90 Correct 230 ms 43336 KB Output is correct
91 Correct 239 ms 43544 KB Output is correct
92 Correct 324 ms 49944 KB Output is correct
93 Correct 326 ms 49840 KB Output is correct
94 Correct 273 ms 49796 KB Output is correct
95 Correct 290 ms 49896 KB Output is correct
96 Correct 3 ms 4940 KB Output is correct
97 Correct 26 ms 8664 KB Output is correct
98 Correct 75 ms 15172 KB Output is correct
99 Correct 358 ms 54672 KB Output is correct
100 Correct 15 ms 6928 KB Output is correct
101 Correct 67 ms 14784 KB Output is correct
102 Correct 138 ms 24560 KB Output is correct
103 Correct 159 ms 23528 KB Output is correct
104 Correct 209 ms 30364 KB Output is correct
105 Correct 325 ms 37312 KB Output is correct
106 Correct 356 ms 44372 KB Output is correct
107 Correct 438 ms 51340 KB Output is correct
108 Correct 2 ms 4940 KB Output is correct
109 Correct 2 ms 4940 KB Output is correct
110 Correct 2 ms 4940 KB Output is correct
111 Correct 2 ms 4940 KB Output is correct
112 Correct 2 ms 4940 KB Output is correct
113 Correct 2 ms 4940 KB Output is correct
114 Correct 2 ms 4940 KB Output is correct
115 Correct 3 ms 4940 KB Output is correct
116 Correct 2 ms 4940 KB Output is correct
117 Correct 2 ms 4940 KB Output is correct
118 Correct 2 ms 4940 KB Output is correct
119 Correct 4 ms 5388 KB Output is correct
120 Correct 7 ms 5580 KB Output is correct
121 Correct 171 ms 28764 KB Output is correct
122 Correct 189 ms 39556 KB Output is correct
123 Correct 203 ms 39556 KB Output is correct
124 Correct 2 ms 4940 KB Output is correct
125 Correct 2 ms 4952 KB Output is correct
126 Correct 2 ms 4940 KB Output is correct
127 Correct 387 ms 53396 KB Output is correct
128 Correct 356 ms 51672 KB Output is correct
129 Correct 347 ms 52248 KB Output is correct
130 Correct 7 ms 5708 KB Output is correct
131 Correct 13 ms 6484 KB Output is correct
132 Correct 133 ms 28320 KB Output is correct
133 Correct 222 ms 40248 KB Output is correct
134 Correct 294 ms 51992 KB Output is correct
135 Correct 325 ms 53704 KB Output is correct
136 Correct 313 ms 53152 KB Output is correct
137 Correct 328 ms 54292 KB Output is correct
138 Correct 339 ms 57364 KB Output is correct
139 Correct 324 ms 47828 KB Output is correct
140 Correct 2 ms 4940 KB Output is correct
141 Correct 58 ms 12824 KB Output is correct
142 Correct 30 ms 9220 KB Output is correct
143 Correct 116 ms 19684 KB Output is correct
144 Correct 194 ms 29976 KB Output is correct
145 Correct 230 ms 31176 KB Output is correct
146 Correct 276 ms 38044 KB Output is correct
147 Correct 346 ms 44752 KB Output is correct
148 Correct 409 ms 50684 KB Output is correct
149 Correct 487 ms 57692 KB Output is correct
150 Correct 389 ms 56356 KB Output is correct
151 Correct 339 ms 53440 KB Output is correct
152 Correct 8 ms 5964 KB Output is correct
153 Correct 11 ms 6864 KB Output is correct
154 Correct 146 ms 29528 KB Output is correct
155 Correct 287 ms 42088 KB Output is correct
156 Correct 312 ms 54244 KB Output is correct
157 Correct 2 ms 4940 KB Output is correct
158 Correct 3 ms 4940 KB Output is correct
159 Correct 2 ms 4992 KB Output is correct
160 Correct 3 ms 4992 KB Output is correct
161 Correct 370 ms 50224 KB Output is correct
162 Correct 318 ms 54648 KB Output is correct
163 Correct 289 ms 53304 KB Output is correct
164 Correct 305 ms 53368 KB Output is correct
165 Correct 337 ms 51472 KB Output is correct
166 Correct 354 ms 50524 KB Output is correct
167 Correct 91 ms 15940 KB Output is correct
168 Correct 52 ms 10952 KB Output is correct
169 Correct 121 ms 20724 KB Output is correct
170 Correct 213 ms 34556 KB Output is correct
171 Correct 276 ms 44420 KB Output is correct
172 Correct 207 ms 28256 KB Output is correct
173 Correct 243 ms 33048 KB Output is correct
174 Correct 288 ms 37652 KB Output is correct
175 Correct 332 ms 42104 KB Output is correct
176 Correct 374 ms 47208 KB Output is correct
177 Correct 424 ms 51724 KB Output is correct