# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
743257 |
2023-05-17T09:16:39 Z |
zaneyu |
Maze (JOI23_ho_t3) |
C++17 |
|
1008 ms |
462680 KB |
#include<bits/stdc++.h>
using namespace std;
using ll=long long;
using ld=long double;
using pii=pair<int,int>;
#define f first
#define s second
#define pb push_back
#define REP(i,n) for(int i=0;i<n;i++)
#define REP1(i,n) for(int i=1;i<=n;i++)
#define FILL(n,x) memset(n,x,sizeof(n))
#define ALL(_a) _a.begin(),_a.end()
#define sz(x) (int)x.size()
#define SORT_UNIQUE(c) (sort(c.begin(),c.end()),c.resize(distance(c.begin(),unique(c.begin(),c.end()))))
const ll maxn=6e6+5;
const ll maxlg=__lg(maxn)+2;
const ll INF64=4e18;
const int INF=0x3f3f3f3f;
const int MOD=1e9+7;
const ld PI=acos(-1);
const ld eps=1e-4;
#define lowb(x) x&(-x)
#define MNTO(x,y) x=min(x,(__typeof__(x))y)
#define MXTO(x,y) x=max(x,(__typeof__(x))y)
string arr[maxn];
int r,c,n;
int to(int i,int j){
return i*c+j;
}
bool isin(int x,int y){
if(x<0 or x>=r or y<0 or y>=c) return false;
return true;
}
int dx[4]={1,0,-1,0},dy[4]={0,1,0,-1};
int mxx[maxn],mnx[maxn],mxy[maxn],mny[maxn];
vector<pii> bord[maxn];
bool vis[maxn];
pii dst[maxn];
int main(){
cin>>r>>c>>n;
int sx,sy,a,b;
cin>>sx>>sy>>a>>b;
--sx,--sy,--a,--b;
--n;
REP(i,r*c) dst[i]={INF,INF};
REP(i,r){
cin>>arr[i];
}
queue<pii> q;
q.push({sx,sy});
int ans=0;
while(!vis[to(a,b)]){
vector<pii> nw;
while(sz(q)){
pii z=q.front();
nw.pb(z);
q.pop();
REP(k,4){
int x=dx[k]+z.f,y=dy[k]+z.s;
if(!isin(x,y) or arr[x][y]=='#' or vis[to(x,y)]) continue;
vis[to(x,y)]=1;
q.push({x,y});
}
}
if(vis[to(a,b)]) break;
queue<pii> q2;
for(auto z:nw){
REP(k,4){
int x=dx[k]+z.f,y=dy[k]+z.s;
if(!isin(x,y) or arr[x][y]=='.' or vis[to(x,y)]) continue;
vis[to(x,y)]=1;
dst[to(x,y)]={0,0};
q2.push({x,y});
}
}
while(sz(q2)){
pii z=q2.front();
//cout<<z.f<<' '<<z.s<<'\n';
q2.pop();
q.push(z);
REP(k,4){
int x=dx[k]+z.f,y=dy[k]+z.s;
int ndx=dst[to(z.f,z.s)].f+abs(dx[k]),ndy=dst[to(z.f,z.s)].s+abs(dy[k]);
//cout<<isin(x,y)<<' '<<(dst[to(x,y)]<tmp)<<' '<<bad(ndx,ndy)<<'\n';
if(!isin(x,y) or vis[to(x,y)] or ndx>n or ndy>n) continue;
vis[to(x,y)]=1;
dst[to(x,y)]={ndx,ndy};
q2.push({x,y});
//cout<<x<<' '<<y<<'\n';
}
}
++ans;
}
cout<<ans<<'\n';
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
181 ms |
329036 KB |
Output is correct |
2 |
Correct |
196 ms |
329052 KB |
Output is correct |
3 |
Correct |
201 ms |
328980 KB |
Output is correct |
4 |
Correct |
172 ms |
328988 KB |
Output is correct |
5 |
Correct |
184 ms |
329184 KB |
Output is correct |
6 |
Correct |
202 ms |
329048 KB |
Output is correct |
7 |
Correct |
161 ms |
329056 KB |
Output is correct |
8 |
Correct |
171 ms |
328984 KB |
Output is correct |
9 |
Correct |
192 ms |
329076 KB |
Output is correct |
10 |
Correct |
171 ms |
329084 KB |
Output is correct |
11 |
Correct |
186 ms |
329084 KB |
Output is correct |
12 |
Correct |
189 ms |
329068 KB |
Output is correct |
13 |
Correct |
200 ms |
329036 KB |
Output is correct |
14 |
Correct |
188 ms |
329040 KB |
Output is correct |
15 |
Correct |
203 ms |
328956 KB |
Output is correct |
16 |
Correct |
205 ms |
329092 KB |
Output is correct |
17 |
Correct |
184 ms |
328992 KB |
Output is correct |
18 |
Correct |
193 ms |
329168 KB |
Output is correct |
19 |
Correct |
219 ms |
329752 KB |
Output is correct |
20 |
Correct |
210 ms |
329568 KB |
Output is correct |
21 |
Correct |
174 ms |
330388 KB |
Output is correct |
22 |
Correct |
188 ms |
329820 KB |
Output is correct |
23 |
Correct |
216 ms |
329792 KB |
Output is correct |
24 |
Correct |
213 ms |
329740 KB |
Output is correct |
25 |
Correct |
201 ms |
329672 KB |
Output is correct |
26 |
Correct |
215 ms |
329840 KB |
Output is correct |
27 |
Correct |
217 ms |
329688 KB |
Output is correct |
28 |
Correct |
192 ms |
329712 KB |
Output is correct |
29 |
Correct |
209 ms |
330640 KB |
Output is correct |
30 |
Correct |
211 ms |
329640 KB |
Output is correct |
31 |
Correct |
208 ms |
332792 KB |
Output is correct |
32 |
Correct |
204 ms |
330692 KB |
Output is correct |
33 |
Correct |
234 ms |
330708 KB |
Output is correct |
34 |
Correct |
187 ms |
330668 KB |
Output is correct |
35 |
Correct |
211 ms |
330776 KB |
Output is correct |
36 |
Correct |
192 ms |
330948 KB |
Output is correct |
37 |
Correct |
190 ms |
330816 KB |
Output is correct |
38 |
Correct |
203 ms |
330696 KB |
Output is correct |
39 |
Correct |
394 ms |
345116 KB |
Output is correct |
40 |
Correct |
190 ms |
330880 KB |
Output is correct |
41 |
Correct |
182 ms |
330968 KB |
Output is correct |
42 |
Correct |
226 ms |
331500 KB |
Output is correct |
43 |
Correct |
233 ms |
331724 KB |
Output is correct |
44 |
Correct |
266 ms |
336212 KB |
Output is correct |
45 |
Correct |
226 ms |
337240 KB |
Output is correct |
46 |
Correct |
294 ms |
362480 KB |
Output is correct |
47 |
Correct |
363 ms |
345756 KB |
Output is correct |
48 |
Correct |
363 ms |
346112 KB |
Output is correct |
49 |
Correct |
255 ms |
344672 KB |
Output is correct |
50 |
Correct |
331 ms |
344632 KB |
Output is correct |
51 |
Correct |
351 ms |
347204 KB |
Output is correct |
52 |
Correct |
291 ms |
346600 KB |
Output is correct |
53 |
Correct |
383 ms |
346216 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
217 ms |
328996 KB |
Output is correct |
2 |
Correct |
182 ms |
328960 KB |
Output is correct |
3 |
Correct |
186 ms |
329076 KB |
Output is correct |
4 |
Correct |
185 ms |
329168 KB |
Output is correct |
5 |
Correct |
177 ms |
329032 KB |
Output is correct |
6 |
Correct |
188 ms |
329060 KB |
Output is correct |
7 |
Correct |
174 ms |
329080 KB |
Output is correct |
8 |
Correct |
202 ms |
329036 KB |
Output is correct |
9 |
Correct |
181 ms |
329224 KB |
Output is correct |
10 |
Correct |
183 ms |
328976 KB |
Output is correct |
11 |
Correct |
178 ms |
329040 KB |
Output is correct |
12 |
Correct |
184 ms |
329088 KB |
Output is correct |
13 |
Correct |
216 ms |
329068 KB |
Output is correct |
14 |
Correct |
204 ms |
329100 KB |
Output is correct |
15 |
Correct |
207 ms |
329008 KB |
Output is correct |
16 |
Correct |
218 ms |
329060 KB |
Output is correct |
17 |
Correct |
197 ms |
329132 KB |
Output is correct |
18 |
Correct |
199 ms |
329084 KB |
Output is correct |
19 |
Correct |
223 ms |
329020 KB |
Output is correct |
20 |
Correct |
240 ms |
329080 KB |
Output is correct |
21 |
Correct |
178 ms |
329064 KB |
Output is correct |
22 |
Correct |
199 ms |
329068 KB |
Output is correct |
23 |
Correct |
182 ms |
329036 KB |
Output is correct |
24 |
Correct |
170 ms |
329028 KB |
Output is correct |
25 |
Correct |
171 ms |
328988 KB |
Output is correct |
26 |
Correct |
171 ms |
329092 KB |
Output is correct |
27 |
Correct |
179 ms |
329032 KB |
Output is correct |
28 |
Correct |
182 ms |
329088 KB |
Output is correct |
29 |
Correct |
193 ms |
329056 KB |
Output is correct |
30 |
Correct |
179 ms |
329096 KB |
Output is correct |
31 |
Correct |
181 ms |
329056 KB |
Output is correct |
32 |
Correct |
171 ms |
329020 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
231 ms |
329036 KB |
Output is correct |
2 |
Correct |
236 ms |
329076 KB |
Output is correct |
3 |
Correct |
166 ms |
329076 KB |
Output is correct |
4 |
Correct |
163 ms |
329056 KB |
Output is correct |
5 |
Correct |
176 ms |
328956 KB |
Output is correct |
6 |
Correct |
188 ms |
329032 KB |
Output is correct |
7 |
Correct |
184 ms |
328980 KB |
Output is correct |
8 |
Correct |
172 ms |
329188 KB |
Output is correct |
9 |
Correct |
183 ms |
329104 KB |
Output is correct |
10 |
Correct |
185 ms |
328992 KB |
Output is correct |
11 |
Correct |
183 ms |
329104 KB |
Output is correct |
12 |
Correct |
203 ms |
329096 KB |
Output is correct |
13 |
Correct |
195 ms |
329080 KB |
Output is correct |
14 |
Correct |
203 ms |
329076 KB |
Output is correct |
15 |
Correct |
209 ms |
329064 KB |
Output is correct |
16 |
Correct |
198 ms |
329092 KB |
Output is correct |
17 |
Correct |
194 ms |
329068 KB |
Output is correct |
18 |
Correct |
211 ms |
329112 KB |
Output is correct |
19 |
Correct |
188 ms |
329080 KB |
Output is correct |
20 |
Correct |
184 ms |
329020 KB |
Output is correct |
21 |
Correct |
213 ms |
329032 KB |
Output is correct |
22 |
Correct |
200 ms |
329048 KB |
Output is correct |
23 |
Correct |
213 ms |
329100 KB |
Output is correct |
24 |
Correct |
184 ms |
329016 KB |
Output is correct |
25 |
Correct |
183 ms |
329460 KB |
Output is correct |
26 |
Correct |
196 ms |
330252 KB |
Output is correct |
27 |
Correct |
183 ms |
330404 KB |
Output is correct |
28 |
Correct |
180 ms |
330316 KB |
Output is correct |
29 |
Correct |
223 ms |
330400 KB |
Output is correct |
30 |
Correct |
178 ms |
330168 KB |
Output is correct |
31 |
Correct |
185 ms |
329884 KB |
Output is correct |
32 |
Correct |
182 ms |
329880 KB |
Output is correct |
33 |
Correct |
181 ms |
329784 KB |
Output is correct |
34 |
Correct |
180 ms |
331512 KB |
Output is correct |
35 |
Correct |
182 ms |
333004 KB |
Output is correct |
36 |
Correct |
181 ms |
332800 KB |
Output is correct |
37 |
Correct |
178 ms |
331900 KB |
Output is correct |
38 |
Correct |
180 ms |
331840 KB |
Output is correct |
39 |
Correct |
200 ms |
338116 KB |
Output is correct |
40 |
Correct |
242 ms |
351224 KB |
Output is correct |
41 |
Correct |
256 ms |
362576 KB |
Output is correct |
42 |
Correct |
270 ms |
362524 KB |
Output is correct |
43 |
Correct |
260 ms |
358272 KB |
Output is correct |
44 |
Correct |
269 ms |
358368 KB |
Output is correct |
45 |
Correct |
263 ms |
353604 KB |
Output is correct |
46 |
Correct |
273 ms |
353544 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
217 ms |
328996 KB |
Output is correct |
2 |
Correct |
182 ms |
328960 KB |
Output is correct |
3 |
Correct |
186 ms |
329076 KB |
Output is correct |
4 |
Correct |
185 ms |
329168 KB |
Output is correct |
5 |
Correct |
177 ms |
329032 KB |
Output is correct |
6 |
Correct |
188 ms |
329060 KB |
Output is correct |
7 |
Correct |
174 ms |
329080 KB |
Output is correct |
8 |
Correct |
202 ms |
329036 KB |
Output is correct |
9 |
Correct |
181 ms |
329224 KB |
Output is correct |
10 |
Correct |
183 ms |
328976 KB |
Output is correct |
11 |
Correct |
178 ms |
329040 KB |
Output is correct |
12 |
Correct |
184 ms |
329088 KB |
Output is correct |
13 |
Correct |
216 ms |
329068 KB |
Output is correct |
14 |
Correct |
204 ms |
329100 KB |
Output is correct |
15 |
Correct |
207 ms |
329008 KB |
Output is correct |
16 |
Correct |
218 ms |
329060 KB |
Output is correct |
17 |
Correct |
197 ms |
329132 KB |
Output is correct |
18 |
Correct |
199 ms |
329084 KB |
Output is correct |
19 |
Correct |
223 ms |
329020 KB |
Output is correct |
20 |
Correct |
240 ms |
329080 KB |
Output is correct |
21 |
Correct |
178 ms |
329064 KB |
Output is correct |
22 |
Correct |
199 ms |
329068 KB |
Output is correct |
23 |
Correct |
182 ms |
329036 KB |
Output is correct |
24 |
Correct |
170 ms |
329028 KB |
Output is correct |
25 |
Correct |
171 ms |
328988 KB |
Output is correct |
26 |
Correct |
171 ms |
329092 KB |
Output is correct |
27 |
Correct |
179 ms |
329032 KB |
Output is correct |
28 |
Correct |
182 ms |
329088 KB |
Output is correct |
29 |
Correct |
193 ms |
329056 KB |
Output is correct |
30 |
Correct |
179 ms |
329096 KB |
Output is correct |
31 |
Correct |
181 ms |
329056 KB |
Output is correct |
32 |
Correct |
171 ms |
329020 KB |
Output is correct |
33 |
Correct |
176 ms |
329776 KB |
Output is correct |
34 |
Correct |
174 ms |
329104 KB |
Output is correct |
35 |
Correct |
176 ms |
329156 KB |
Output is correct |
36 |
Correct |
168 ms |
329480 KB |
Output is correct |
37 |
Correct |
176 ms |
329496 KB |
Output is correct |
38 |
Correct |
181 ms |
330248 KB |
Output is correct |
39 |
Correct |
180 ms |
330380 KB |
Output is correct |
40 |
Correct |
188 ms |
329776 KB |
Output is correct |
41 |
Correct |
180 ms |
329772 KB |
Output is correct |
42 |
Correct |
174 ms |
330336 KB |
Output is correct |
43 |
Correct |
174 ms |
330328 KB |
Output is correct |
44 |
Correct |
179 ms |
330300 KB |
Output is correct |
45 |
Correct |
170 ms |
329764 KB |
Output is correct |
46 |
Correct |
175 ms |
329684 KB |
Output is correct |
47 |
Correct |
179 ms |
329676 KB |
Output is correct |
48 |
Correct |
180 ms |
329784 KB |
Output is correct |
49 |
Correct |
176 ms |
329740 KB |
Output is correct |
50 |
Correct |
189 ms |
329740 KB |
Output is correct |
51 |
Correct |
182 ms |
329828 KB |
Output is correct |
52 |
Correct |
171 ms |
329824 KB |
Output is correct |
53 |
Correct |
170 ms |
329824 KB |
Output is correct |
54 |
Correct |
181 ms |
329888 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
217 ms |
328996 KB |
Output is correct |
2 |
Correct |
182 ms |
328960 KB |
Output is correct |
3 |
Correct |
186 ms |
329076 KB |
Output is correct |
4 |
Correct |
185 ms |
329168 KB |
Output is correct |
5 |
Correct |
177 ms |
329032 KB |
Output is correct |
6 |
Correct |
188 ms |
329060 KB |
Output is correct |
7 |
Correct |
174 ms |
329080 KB |
Output is correct |
8 |
Correct |
202 ms |
329036 KB |
Output is correct |
9 |
Correct |
181 ms |
329224 KB |
Output is correct |
10 |
Correct |
183 ms |
328976 KB |
Output is correct |
11 |
Correct |
178 ms |
329040 KB |
Output is correct |
12 |
Correct |
184 ms |
329088 KB |
Output is correct |
13 |
Correct |
216 ms |
329068 KB |
Output is correct |
14 |
Correct |
204 ms |
329100 KB |
Output is correct |
15 |
Correct |
207 ms |
329008 KB |
Output is correct |
16 |
Correct |
218 ms |
329060 KB |
Output is correct |
17 |
Correct |
197 ms |
329132 KB |
Output is correct |
18 |
Correct |
199 ms |
329084 KB |
Output is correct |
19 |
Correct |
223 ms |
329020 KB |
Output is correct |
20 |
Correct |
240 ms |
329080 KB |
Output is correct |
21 |
Correct |
178 ms |
329064 KB |
Output is correct |
22 |
Correct |
199 ms |
329068 KB |
Output is correct |
23 |
Correct |
182 ms |
329036 KB |
Output is correct |
24 |
Correct |
170 ms |
329028 KB |
Output is correct |
25 |
Correct |
171 ms |
328988 KB |
Output is correct |
26 |
Correct |
171 ms |
329092 KB |
Output is correct |
27 |
Correct |
179 ms |
329032 KB |
Output is correct |
28 |
Correct |
182 ms |
329088 KB |
Output is correct |
29 |
Correct |
193 ms |
329056 KB |
Output is correct |
30 |
Correct |
179 ms |
329096 KB |
Output is correct |
31 |
Correct |
181 ms |
329056 KB |
Output is correct |
32 |
Correct |
171 ms |
329020 KB |
Output is correct |
33 |
Correct |
176 ms |
329776 KB |
Output is correct |
34 |
Correct |
174 ms |
329104 KB |
Output is correct |
35 |
Correct |
176 ms |
329156 KB |
Output is correct |
36 |
Correct |
168 ms |
329480 KB |
Output is correct |
37 |
Correct |
176 ms |
329496 KB |
Output is correct |
38 |
Correct |
181 ms |
330248 KB |
Output is correct |
39 |
Correct |
180 ms |
330380 KB |
Output is correct |
40 |
Correct |
188 ms |
329776 KB |
Output is correct |
41 |
Correct |
180 ms |
329772 KB |
Output is correct |
42 |
Correct |
174 ms |
330336 KB |
Output is correct |
43 |
Correct |
174 ms |
330328 KB |
Output is correct |
44 |
Correct |
179 ms |
330300 KB |
Output is correct |
45 |
Correct |
170 ms |
329764 KB |
Output is correct |
46 |
Correct |
175 ms |
329684 KB |
Output is correct |
47 |
Correct |
179 ms |
329676 KB |
Output is correct |
48 |
Correct |
180 ms |
329784 KB |
Output is correct |
49 |
Correct |
176 ms |
329740 KB |
Output is correct |
50 |
Correct |
189 ms |
329740 KB |
Output is correct |
51 |
Correct |
182 ms |
329828 KB |
Output is correct |
52 |
Correct |
171 ms |
329824 KB |
Output is correct |
53 |
Correct |
170 ms |
329824 KB |
Output is correct |
54 |
Correct |
181 ms |
329888 KB |
Output is correct |
55 |
Correct |
218 ms |
330700 KB |
Output is correct |
56 |
Correct |
177 ms |
329676 KB |
Output is correct |
57 |
Correct |
186 ms |
331496 KB |
Output is correct |
58 |
Correct |
189 ms |
330508 KB |
Output is correct |
59 |
Correct |
179 ms |
332896 KB |
Output is correct |
60 |
Correct |
188 ms |
330740 KB |
Output is correct |
61 |
Correct |
200 ms |
330744 KB |
Output is correct |
62 |
Correct |
176 ms |
332860 KB |
Output is correct |
63 |
Correct |
175 ms |
331960 KB |
Output is correct |
64 |
Correct |
176 ms |
331836 KB |
Output is correct |
65 |
Correct |
193 ms |
330732 KB |
Output is correct |
66 |
Correct |
189 ms |
330824 KB |
Output is correct |
67 |
Correct |
182 ms |
330808 KB |
Output is correct |
68 |
Correct |
187 ms |
330732 KB |
Output is correct |
69 |
Correct |
184 ms |
330872 KB |
Output is correct |
70 |
Correct |
194 ms |
330832 KB |
Output is correct |
71 |
Correct |
188 ms |
331060 KB |
Output is correct |
72 |
Correct |
187 ms |
331076 KB |
Output is correct |
73 |
Correct |
186 ms |
330832 KB |
Output is correct |
74 |
Correct |
185 ms |
330752 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
181 ms |
329036 KB |
Output is correct |
2 |
Correct |
196 ms |
329052 KB |
Output is correct |
3 |
Correct |
201 ms |
328980 KB |
Output is correct |
4 |
Correct |
172 ms |
328988 KB |
Output is correct |
5 |
Correct |
184 ms |
329184 KB |
Output is correct |
6 |
Correct |
202 ms |
329048 KB |
Output is correct |
7 |
Correct |
161 ms |
329056 KB |
Output is correct |
8 |
Correct |
171 ms |
328984 KB |
Output is correct |
9 |
Correct |
192 ms |
329076 KB |
Output is correct |
10 |
Correct |
171 ms |
329084 KB |
Output is correct |
11 |
Correct |
186 ms |
329084 KB |
Output is correct |
12 |
Correct |
189 ms |
329068 KB |
Output is correct |
13 |
Correct |
200 ms |
329036 KB |
Output is correct |
14 |
Correct |
188 ms |
329040 KB |
Output is correct |
15 |
Correct |
203 ms |
328956 KB |
Output is correct |
16 |
Correct |
205 ms |
329092 KB |
Output is correct |
17 |
Correct |
184 ms |
328992 KB |
Output is correct |
18 |
Correct |
193 ms |
329168 KB |
Output is correct |
19 |
Correct |
219 ms |
329752 KB |
Output is correct |
20 |
Correct |
210 ms |
329568 KB |
Output is correct |
21 |
Correct |
174 ms |
330388 KB |
Output is correct |
22 |
Correct |
188 ms |
329820 KB |
Output is correct |
23 |
Correct |
216 ms |
329792 KB |
Output is correct |
24 |
Correct |
213 ms |
329740 KB |
Output is correct |
25 |
Correct |
201 ms |
329672 KB |
Output is correct |
26 |
Correct |
215 ms |
329840 KB |
Output is correct |
27 |
Correct |
217 ms |
329688 KB |
Output is correct |
28 |
Correct |
192 ms |
329712 KB |
Output is correct |
29 |
Correct |
209 ms |
330640 KB |
Output is correct |
30 |
Correct |
211 ms |
329640 KB |
Output is correct |
31 |
Correct |
208 ms |
332792 KB |
Output is correct |
32 |
Correct |
204 ms |
330692 KB |
Output is correct |
33 |
Correct |
234 ms |
330708 KB |
Output is correct |
34 |
Correct |
187 ms |
330668 KB |
Output is correct |
35 |
Correct |
211 ms |
330776 KB |
Output is correct |
36 |
Correct |
192 ms |
330948 KB |
Output is correct |
37 |
Correct |
190 ms |
330816 KB |
Output is correct |
38 |
Correct |
203 ms |
330696 KB |
Output is correct |
39 |
Correct |
394 ms |
345116 KB |
Output is correct |
40 |
Correct |
190 ms |
330880 KB |
Output is correct |
41 |
Correct |
182 ms |
330968 KB |
Output is correct |
42 |
Correct |
226 ms |
331500 KB |
Output is correct |
43 |
Correct |
233 ms |
331724 KB |
Output is correct |
44 |
Correct |
266 ms |
336212 KB |
Output is correct |
45 |
Correct |
226 ms |
337240 KB |
Output is correct |
46 |
Correct |
294 ms |
362480 KB |
Output is correct |
47 |
Correct |
363 ms |
345756 KB |
Output is correct |
48 |
Correct |
363 ms |
346112 KB |
Output is correct |
49 |
Correct |
255 ms |
344672 KB |
Output is correct |
50 |
Correct |
331 ms |
344632 KB |
Output is correct |
51 |
Correct |
351 ms |
347204 KB |
Output is correct |
52 |
Correct |
291 ms |
346600 KB |
Output is correct |
53 |
Correct |
383 ms |
346216 KB |
Output is correct |
54 |
Correct |
217 ms |
328996 KB |
Output is correct |
55 |
Correct |
182 ms |
328960 KB |
Output is correct |
56 |
Correct |
186 ms |
329076 KB |
Output is correct |
57 |
Correct |
185 ms |
329168 KB |
Output is correct |
58 |
Correct |
177 ms |
329032 KB |
Output is correct |
59 |
Correct |
188 ms |
329060 KB |
Output is correct |
60 |
Correct |
174 ms |
329080 KB |
Output is correct |
61 |
Correct |
202 ms |
329036 KB |
Output is correct |
62 |
Correct |
181 ms |
329224 KB |
Output is correct |
63 |
Correct |
183 ms |
328976 KB |
Output is correct |
64 |
Correct |
178 ms |
329040 KB |
Output is correct |
65 |
Correct |
184 ms |
329088 KB |
Output is correct |
66 |
Correct |
216 ms |
329068 KB |
Output is correct |
67 |
Correct |
204 ms |
329100 KB |
Output is correct |
68 |
Correct |
207 ms |
329008 KB |
Output is correct |
69 |
Correct |
218 ms |
329060 KB |
Output is correct |
70 |
Correct |
197 ms |
329132 KB |
Output is correct |
71 |
Correct |
199 ms |
329084 KB |
Output is correct |
72 |
Correct |
223 ms |
329020 KB |
Output is correct |
73 |
Correct |
240 ms |
329080 KB |
Output is correct |
74 |
Correct |
178 ms |
329064 KB |
Output is correct |
75 |
Correct |
199 ms |
329068 KB |
Output is correct |
76 |
Correct |
182 ms |
329036 KB |
Output is correct |
77 |
Correct |
170 ms |
329028 KB |
Output is correct |
78 |
Correct |
171 ms |
328988 KB |
Output is correct |
79 |
Correct |
171 ms |
329092 KB |
Output is correct |
80 |
Correct |
179 ms |
329032 KB |
Output is correct |
81 |
Correct |
182 ms |
329088 KB |
Output is correct |
82 |
Correct |
193 ms |
329056 KB |
Output is correct |
83 |
Correct |
179 ms |
329096 KB |
Output is correct |
84 |
Correct |
181 ms |
329056 KB |
Output is correct |
85 |
Correct |
171 ms |
329020 KB |
Output is correct |
86 |
Correct |
231 ms |
329036 KB |
Output is correct |
87 |
Correct |
236 ms |
329076 KB |
Output is correct |
88 |
Correct |
166 ms |
329076 KB |
Output is correct |
89 |
Correct |
163 ms |
329056 KB |
Output is correct |
90 |
Correct |
176 ms |
328956 KB |
Output is correct |
91 |
Correct |
188 ms |
329032 KB |
Output is correct |
92 |
Correct |
184 ms |
328980 KB |
Output is correct |
93 |
Correct |
172 ms |
329188 KB |
Output is correct |
94 |
Correct |
183 ms |
329104 KB |
Output is correct |
95 |
Correct |
185 ms |
328992 KB |
Output is correct |
96 |
Correct |
183 ms |
329104 KB |
Output is correct |
97 |
Correct |
203 ms |
329096 KB |
Output is correct |
98 |
Correct |
195 ms |
329080 KB |
Output is correct |
99 |
Correct |
203 ms |
329076 KB |
Output is correct |
100 |
Correct |
209 ms |
329064 KB |
Output is correct |
101 |
Correct |
198 ms |
329092 KB |
Output is correct |
102 |
Correct |
194 ms |
329068 KB |
Output is correct |
103 |
Correct |
211 ms |
329112 KB |
Output is correct |
104 |
Correct |
188 ms |
329080 KB |
Output is correct |
105 |
Correct |
184 ms |
329020 KB |
Output is correct |
106 |
Correct |
213 ms |
329032 KB |
Output is correct |
107 |
Correct |
200 ms |
329048 KB |
Output is correct |
108 |
Correct |
213 ms |
329100 KB |
Output is correct |
109 |
Correct |
184 ms |
329016 KB |
Output is correct |
110 |
Correct |
183 ms |
329460 KB |
Output is correct |
111 |
Correct |
196 ms |
330252 KB |
Output is correct |
112 |
Correct |
183 ms |
330404 KB |
Output is correct |
113 |
Correct |
180 ms |
330316 KB |
Output is correct |
114 |
Correct |
223 ms |
330400 KB |
Output is correct |
115 |
Correct |
178 ms |
330168 KB |
Output is correct |
116 |
Correct |
185 ms |
329884 KB |
Output is correct |
117 |
Correct |
182 ms |
329880 KB |
Output is correct |
118 |
Correct |
181 ms |
329784 KB |
Output is correct |
119 |
Correct |
180 ms |
331512 KB |
Output is correct |
120 |
Correct |
182 ms |
333004 KB |
Output is correct |
121 |
Correct |
181 ms |
332800 KB |
Output is correct |
122 |
Correct |
178 ms |
331900 KB |
Output is correct |
123 |
Correct |
180 ms |
331840 KB |
Output is correct |
124 |
Correct |
200 ms |
338116 KB |
Output is correct |
125 |
Correct |
242 ms |
351224 KB |
Output is correct |
126 |
Correct |
256 ms |
362576 KB |
Output is correct |
127 |
Correct |
270 ms |
362524 KB |
Output is correct |
128 |
Correct |
260 ms |
358272 KB |
Output is correct |
129 |
Correct |
269 ms |
358368 KB |
Output is correct |
130 |
Correct |
263 ms |
353604 KB |
Output is correct |
131 |
Correct |
273 ms |
353544 KB |
Output is correct |
132 |
Correct |
176 ms |
329776 KB |
Output is correct |
133 |
Correct |
174 ms |
329104 KB |
Output is correct |
134 |
Correct |
176 ms |
329156 KB |
Output is correct |
135 |
Correct |
168 ms |
329480 KB |
Output is correct |
136 |
Correct |
176 ms |
329496 KB |
Output is correct |
137 |
Correct |
181 ms |
330248 KB |
Output is correct |
138 |
Correct |
180 ms |
330380 KB |
Output is correct |
139 |
Correct |
188 ms |
329776 KB |
Output is correct |
140 |
Correct |
180 ms |
329772 KB |
Output is correct |
141 |
Correct |
174 ms |
330336 KB |
Output is correct |
142 |
Correct |
174 ms |
330328 KB |
Output is correct |
143 |
Correct |
179 ms |
330300 KB |
Output is correct |
144 |
Correct |
170 ms |
329764 KB |
Output is correct |
145 |
Correct |
175 ms |
329684 KB |
Output is correct |
146 |
Correct |
179 ms |
329676 KB |
Output is correct |
147 |
Correct |
180 ms |
329784 KB |
Output is correct |
148 |
Correct |
176 ms |
329740 KB |
Output is correct |
149 |
Correct |
189 ms |
329740 KB |
Output is correct |
150 |
Correct |
182 ms |
329828 KB |
Output is correct |
151 |
Correct |
171 ms |
329824 KB |
Output is correct |
152 |
Correct |
170 ms |
329824 KB |
Output is correct |
153 |
Correct |
181 ms |
329888 KB |
Output is correct |
154 |
Correct |
218 ms |
330700 KB |
Output is correct |
155 |
Correct |
177 ms |
329676 KB |
Output is correct |
156 |
Correct |
186 ms |
331496 KB |
Output is correct |
157 |
Correct |
189 ms |
330508 KB |
Output is correct |
158 |
Correct |
179 ms |
332896 KB |
Output is correct |
159 |
Correct |
188 ms |
330740 KB |
Output is correct |
160 |
Correct |
200 ms |
330744 KB |
Output is correct |
161 |
Correct |
176 ms |
332860 KB |
Output is correct |
162 |
Correct |
175 ms |
331960 KB |
Output is correct |
163 |
Correct |
176 ms |
331836 KB |
Output is correct |
164 |
Correct |
193 ms |
330732 KB |
Output is correct |
165 |
Correct |
189 ms |
330824 KB |
Output is correct |
166 |
Correct |
182 ms |
330808 KB |
Output is correct |
167 |
Correct |
187 ms |
330732 KB |
Output is correct |
168 |
Correct |
184 ms |
330872 KB |
Output is correct |
169 |
Correct |
194 ms |
330832 KB |
Output is correct |
170 |
Correct |
188 ms |
331060 KB |
Output is correct |
171 |
Correct |
187 ms |
331076 KB |
Output is correct |
172 |
Correct |
186 ms |
330832 KB |
Output is correct |
173 |
Correct |
185 ms |
330752 KB |
Output is correct |
174 |
Correct |
179 ms |
331008 KB |
Output is correct |
175 |
Correct |
209 ms |
332840 KB |
Output is correct |
176 |
Correct |
212 ms |
336904 KB |
Output is correct |
177 |
Correct |
249 ms |
339712 KB |
Output is correct |
178 |
Correct |
219 ms |
342296 KB |
Output is correct |
179 |
Correct |
279 ms |
344924 KB |
Output is correct |
180 |
Correct |
352 ms |
344900 KB |
Output is correct |
181 |
Correct |
339 ms |
346116 KB |
Output is correct |
182 |
Correct |
361 ms |
347608 KB |
Output is correct |
183 |
Correct |
329 ms |
348164 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
181 ms |
329036 KB |
Output is correct |
2 |
Correct |
196 ms |
329052 KB |
Output is correct |
3 |
Correct |
201 ms |
328980 KB |
Output is correct |
4 |
Correct |
172 ms |
328988 KB |
Output is correct |
5 |
Correct |
184 ms |
329184 KB |
Output is correct |
6 |
Correct |
202 ms |
329048 KB |
Output is correct |
7 |
Correct |
161 ms |
329056 KB |
Output is correct |
8 |
Correct |
171 ms |
328984 KB |
Output is correct |
9 |
Correct |
192 ms |
329076 KB |
Output is correct |
10 |
Correct |
171 ms |
329084 KB |
Output is correct |
11 |
Correct |
186 ms |
329084 KB |
Output is correct |
12 |
Correct |
189 ms |
329068 KB |
Output is correct |
13 |
Correct |
200 ms |
329036 KB |
Output is correct |
14 |
Correct |
188 ms |
329040 KB |
Output is correct |
15 |
Correct |
203 ms |
328956 KB |
Output is correct |
16 |
Correct |
205 ms |
329092 KB |
Output is correct |
17 |
Correct |
184 ms |
328992 KB |
Output is correct |
18 |
Correct |
193 ms |
329168 KB |
Output is correct |
19 |
Correct |
219 ms |
329752 KB |
Output is correct |
20 |
Correct |
210 ms |
329568 KB |
Output is correct |
21 |
Correct |
174 ms |
330388 KB |
Output is correct |
22 |
Correct |
188 ms |
329820 KB |
Output is correct |
23 |
Correct |
216 ms |
329792 KB |
Output is correct |
24 |
Correct |
213 ms |
329740 KB |
Output is correct |
25 |
Correct |
201 ms |
329672 KB |
Output is correct |
26 |
Correct |
215 ms |
329840 KB |
Output is correct |
27 |
Correct |
217 ms |
329688 KB |
Output is correct |
28 |
Correct |
192 ms |
329712 KB |
Output is correct |
29 |
Correct |
209 ms |
330640 KB |
Output is correct |
30 |
Correct |
211 ms |
329640 KB |
Output is correct |
31 |
Correct |
208 ms |
332792 KB |
Output is correct |
32 |
Correct |
204 ms |
330692 KB |
Output is correct |
33 |
Correct |
234 ms |
330708 KB |
Output is correct |
34 |
Correct |
187 ms |
330668 KB |
Output is correct |
35 |
Correct |
211 ms |
330776 KB |
Output is correct |
36 |
Correct |
192 ms |
330948 KB |
Output is correct |
37 |
Correct |
190 ms |
330816 KB |
Output is correct |
38 |
Correct |
203 ms |
330696 KB |
Output is correct |
39 |
Correct |
394 ms |
345116 KB |
Output is correct |
40 |
Correct |
190 ms |
330880 KB |
Output is correct |
41 |
Correct |
182 ms |
330968 KB |
Output is correct |
42 |
Correct |
226 ms |
331500 KB |
Output is correct |
43 |
Correct |
233 ms |
331724 KB |
Output is correct |
44 |
Correct |
266 ms |
336212 KB |
Output is correct |
45 |
Correct |
226 ms |
337240 KB |
Output is correct |
46 |
Correct |
294 ms |
362480 KB |
Output is correct |
47 |
Correct |
363 ms |
345756 KB |
Output is correct |
48 |
Correct |
363 ms |
346112 KB |
Output is correct |
49 |
Correct |
255 ms |
344672 KB |
Output is correct |
50 |
Correct |
331 ms |
344632 KB |
Output is correct |
51 |
Correct |
351 ms |
347204 KB |
Output is correct |
52 |
Correct |
291 ms |
346600 KB |
Output is correct |
53 |
Correct |
383 ms |
346216 KB |
Output is correct |
54 |
Correct |
217 ms |
328996 KB |
Output is correct |
55 |
Correct |
182 ms |
328960 KB |
Output is correct |
56 |
Correct |
186 ms |
329076 KB |
Output is correct |
57 |
Correct |
185 ms |
329168 KB |
Output is correct |
58 |
Correct |
177 ms |
329032 KB |
Output is correct |
59 |
Correct |
188 ms |
329060 KB |
Output is correct |
60 |
Correct |
174 ms |
329080 KB |
Output is correct |
61 |
Correct |
202 ms |
329036 KB |
Output is correct |
62 |
Correct |
181 ms |
329224 KB |
Output is correct |
63 |
Correct |
183 ms |
328976 KB |
Output is correct |
64 |
Correct |
178 ms |
329040 KB |
Output is correct |
65 |
Correct |
184 ms |
329088 KB |
Output is correct |
66 |
Correct |
216 ms |
329068 KB |
Output is correct |
67 |
Correct |
204 ms |
329100 KB |
Output is correct |
68 |
Correct |
207 ms |
329008 KB |
Output is correct |
69 |
Correct |
218 ms |
329060 KB |
Output is correct |
70 |
Correct |
197 ms |
329132 KB |
Output is correct |
71 |
Correct |
199 ms |
329084 KB |
Output is correct |
72 |
Correct |
223 ms |
329020 KB |
Output is correct |
73 |
Correct |
240 ms |
329080 KB |
Output is correct |
74 |
Correct |
178 ms |
329064 KB |
Output is correct |
75 |
Correct |
199 ms |
329068 KB |
Output is correct |
76 |
Correct |
182 ms |
329036 KB |
Output is correct |
77 |
Correct |
170 ms |
329028 KB |
Output is correct |
78 |
Correct |
171 ms |
328988 KB |
Output is correct |
79 |
Correct |
171 ms |
329092 KB |
Output is correct |
80 |
Correct |
179 ms |
329032 KB |
Output is correct |
81 |
Correct |
182 ms |
329088 KB |
Output is correct |
82 |
Correct |
193 ms |
329056 KB |
Output is correct |
83 |
Correct |
179 ms |
329096 KB |
Output is correct |
84 |
Correct |
181 ms |
329056 KB |
Output is correct |
85 |
Correct |
171 ms |
329020 KB |
Output is correct |
86 |
Correct |
231 ms |
329036 KB |
Output is correct |
87 |
Correct |
236 ms |
329076 KB |
Output is correct |
88 |
Correct |
166 ms |
329076 KB |
Output is correct |
89 |
Correct |
163 ms |
329056 KB |
Output is correct |
90 |
Correct |
176 ms |
328956 KB |
Output is correct |
91 |
Correct |
188 ms |
329032 KB |
Output is correct |
92 |
Correct |
184 ms |
328980 KB |
Output is correct |
93 |
Correct |
172 ms |
329188 KB |
Output is correct |
94 |
Correct |
183 ms |
329104 KB |
Output is correct |
95 |
Correct |
185 ms |
328992 KB |
Output is correct |
96 |
Correct |
183 ms |
329104 KB |
Output is correct |
97 |
Correct |
203 ms |
329096 KB |
Output is correct |
98 |
Correct |
195 ms |
329080 KB |
Output is correct |
99 |
Correct |
203 ms |
329076 KB |
Output is correct |
100 |
Correct |
209 ms |
329064 KB |
Output is correct |
101 |
Correct |
198 ms |
329092 KB |
Output is correct |
102 |
Correct |
194 ms |
329068 KB |
Output is correct |
103 |
Correct |
211 ms |
329112 KB |
Output is correct |
104 |
Correct |
188 ms |
329080 KB |
Output is correct |
105 |
Correct |
184 ms |
329020 KB |
Output is correct |
106 |
Correct |
213 ms |
329032 KB |
Output is correct |
107 |
Correct |
200 ms |
329048 KB |
Output is correct |
108 |
Correct |
213 ms |
329100 KB |
Output is correct |
109 |
Correct |
184 ms |
329016 KB |
Output is correct |
110 |
Correct |
183 ms |
329460 KB |
Output is correct |
111 |
Correct |
196 ms |
330252 KB |
Output is correct |
112 |
Correct |
183 ms |
330404 KB |
Output is correct |
113 |
Correct |
180 ms |
330316 KB |
Output is correct |
114 |
Correct |
223 ms |
330400 KB |
Output is correct |
115 |
Correct |
178 ms |
330168 KB |
Output is correct |
116 |
Correct |
185 ms |
329884 KB |
Output is correct |
117 |
Correct |
182 ms |
329880 KB |
Output is correct |
118 |
Correct |
181 ms |
329784 KB |
Output is correct |
119 |
Correct |
180 ms |
331512 KB |
Output is correct |
120 |
Correct |
182 ms |
333004 KB |
Output is correct |
121 |
Correct |
181 ms |
332800 KB |
Output is correct |
122 |
Correct |
178 ms |
331900 KB |
Output is correct |
123 |
Correct |
180 ms |
331840 KB |
Output is correct |
124 |
Correct |
200 ms |
338116 KB |
Output is correct |
125 |
Correct |
242 ms |
351224 KB |
Output is correct |
126 |
Correct |
256 ms |
362576 KB |
Output is correct |
127 |
Correct |
270 ms |
362524 KB |
Output is correct |
128 |
Correct |
260 ms |
358272 KB |
Output is correct |
129 |
Correct |
269 ms |
358368 KB |
Output is correct |
130 |
Correct |
263 ms |
353604 KB |
Output is correct |
131 |
Correct |
273 ms |
353544 KB |
Output is correct |
132 |
Correct |
176 ms |
329776 KB |
Output is correct |
133 |
Correct |
174 ms |
329104 KB |
Output is correct |
134 |
Correct |
176 ms |
329156 KB |
Output is correct |
135 |
Correct |
168 ms |
329480 KB |
Output is correct |
136 |
Correct |
176 ms |
329496 KB |
Output is correct |
137 |
Correct |
181 ms |
330248 KB |
Output is correct |
138 |
Correct |
180 ms |
330380 KB |
Output is correct |
139 |
Correct |
188 ms |
329776 KB |
Output is correct |
140 |
Correct |
180 ms |
329772 KB |
Output is correct |
141 |
Correct |
174 ms |
330336 KB |
Output is correct |
142 |
Correct |
174 ms |
330328 KB |
Output is correct |
143 |
Correct |
179 ms |
330300 KB |
Output is correct |
144 |
Correct |
170 ms |
329764 KB |
Output is correct |
145 |
Correct |
175 ms |
329684 KB |
Output is correct |
146 |
Correct |
179 ms |
329676 KB |
Output is correct |
147 |
Correct |
180 ms |
329784 KB |
Output is correct |
148 |
Correct |
176 ms |
329740 KB |
Output is correct |
149 |
Correct |
189 ms |
329740 KB |
Output is correct |
150 |
Correct |
182 ms |
329828 KB |
Output is correct |
151 |
Correct |
171 ms |
329824 KB |
Output is correct |
152 |
Correct |
170 ms |
329824 KB |
Output is correct |
153 |
Correct |
181 ms |
329888 KB |
Output is correct |
154 |
Correct |
218 ms |
330700 KB |
Output is correct |
155 |
Correct |
177 ms |
329676 KB |
Output is correct |
156 |
Correct |
186 ms |
331496 KB |
Output is correct |
157 |
Correct |
189 ms |
330508 KB |
Output is correct |
158 |
Correct |
179 ms |
332896 KB |
Output is correct |
159 |
Correct |
188 ms |
330740 KB |
Output is correct |
160 |
Correct |
200 ms |
330744 KB |
Output is correct |
161 |
Correct |
176 ms |
332860 KB |
Output is correct |
162 |
Correct |
175 ms |
331960 KB |
Output is correct |
163 |
Correct |
176 ms |
331836 KB |
Output is correct |
164 |
Correct |
193 ms |
330732 KB |
Output is correct |
165 |
Correct |
189 ms |
330824 KB |
Output is correct |
166 |
Correct |
182 ms |
330808 KB |
Output is correct |
167 |
Correct |
187 ms |
330732 KB |
Output is correct |
168 |
Correct |
184 ms |
330872 KB |
Output is correct |
169 |
Correct |
194 ms |
330832 KB |
Output is correct |
170 |
Correct |
188 ms |
331060 KB |
Output is correct |
171 |
Correct |
187 ms |
331076 KB |
Output is correct |
172 |
Correct |
186 ms |
330832 KB |
Output is correct |
173 |
Correct |
185 ms |
330752 KB |
Output is correct |
174 |
Correct |
179 ms |
331008 KB |
Output is correct |
175 |
Correct |
209 ms |
332840 KB |
Output is correct |
176 |
Correct |
212 ms |
336904 KB |
Output is correct |
177 |
Correct |
249 ms |
339712 KB |
Output is correct |
178 |
Correct |
219 ms |
342296 KB |
Output is correct |
179 |
Correct |
279 ms |
344924 KB |
Output is correct |
180 |
Correct |
352 ms |
344900 KB |
Output is correct |
181 |
Correct |
339 ms |
346116 KB |
Output is correct |
182 |
Correct |
361 ms |
347608 KB |
Output is correct |
183 |
Correct |
329 ms |
348164 KB |
Output is correct |
184 |
Correct |
541 ms |
361724 KB |
Output is correct |
185 |
Correct |
282 ms |
345704 KB |
Output is correct |
186 |
Correct |
286 ms |
364924 KB |
Output is correct |
187 |
Correct |
255 ms |
353764 KB |
Output is correct |
188 |
Correct |
368 ms |
394472 KB |
Output is correct |
189 |
Correct |
547 ms |
362056 KB |
Output is correct |
190 |
Correct |
343 ms |
360512 KB |
Output is correct |
191 |
Correct |
354 ms |
394636 KB |
Output is correct |
192 |
Correct |
370 ms |
386040 KB |
Output is correct |
193 |
Correct |
424 ms |
386132 KB |
Output is correct |
194 |
Correct |
362 ms |
360828 KB |
Output is correct |
195 |
Correct |
450 ms |
359252 KB |
Output is correct |
196 |
Correct |
555 ms |
361632 KB |
Output is correct |
197 |
Correct |
430 ms |
360564 KB |
Output is correct |
198 |
Correct |
389 ms |
361740 KB |
Output is correct |
199 |
Correct |
542 ms |
363532 KB |
Output is correct |
200 |
Correct |
411 ms |
363628 KB |
Output is correct |
201 |
Correct |
455 ms |
362492 KB |
Output is correct |
202 |
Correct |
599 ms |
361908 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
181 ms |
329036 KB |
Output is correct |
2 |
Correct |
196 ms |
329052 KB |
Output is correct |
3 |
Correct |
201 ms |
328980 KB |
Output is correct |
4 |
Correct |
172 ms |
328988 KB |
Output is correct |
5 |
Correct |
184 ms |
329184 KB |
Output is correct |
6 |
Correct |
202 ms |
329048 KB |
Output is correct |
7 |
Correct |
161 ms |
329056 KB |
Output is correct |
8 |
Correct |
171 ms |
328984 KB |
Output is correct |
9 |
Correct |
192 ms |
329076 KB |
Output is correct |
10 |
Correct |
171 ms |
329084 KB |
Output is correct |
11 |
Correct |
186 ms |
329084 KB |
Output is correct |
12 |
Correct |
189 ms |
329068 KB |
Output is correct |
13 |
Correct |
200 ms |
329036 KB |
Output is correct |
14 |
Correct |
188 ms |
329040 KB |
Output is correct |
15 |
Correct |
203 ms |
328956 KB |
Output is correct |
16 |
Correct |
205 ms |
329092 KB |
Output is correct |
17 |
Correct |
184 ms |
328992 KB |
Output is correct |
18 |
Correct |
193 ms |
329168 KB |
Output is correct |
19 |
Correct |
219 ms |
329752 KB |
Output is correct |
20 |
Correct |
210 ms |
329568 KB |
Output is correct |
21 |
Correct |
174 ms |
330388 KB |
Output is correct |
22 |
Correct |
188 ms |
329820 KB |
Output is correct |
23 |
Correct |
216 ms |
329792 KB |
Output is correct |
24 |
Correct |
213 ms |
329740 KB |
Output is correct |
25 |
Correct |
201 ms |
329672 KB |
Output is correct |
26 |
Correct |
215 ms |
329840 KB |
Output is correct |
27 |
Correct |
217 ms |
329688 KB |
Output is correct |
28 |
Correct |
192 ms |
329712 KB |
Output is correct |
29 |
Correct |
209 ms |
330640 KB |
Output is correct |
30 |
Correct |
211 ms |
329640 KB |
Output is correct |
31 |
Correct |
208 ms |
332792 KB |
Output is correct |
32 |
Correct |
204 ms |
330692 KB |
Output is correct |
33 |
Correct |
234 ms |
330708 KB |
Output is correct |
34 |
Correct |
187 ms |
330668 KB |
Output is correct |
35 |
Correct |
211 ms |
330776 KB |
Output is correct |
36 |
Correct |
192 ms |
330948 KB |
Output is correct |
37 |
Correct |
190 ms |
330816 KB |
Output is correct |
38 |
Correct |
203 ms |
330696 KB |
Output is correct |
39 |
Correct |
394 ms |
345116 KB |
Output is correct |
40 |
Correct |
190 ms |
330880 KB |
Output is correct |
41 |
Correct |
182 ms |
330968 KB |
Output is correct |
42 |
Correct |
226 ms |
331500 KB |
Output is correct |
43 |
Correct |
233 ms |
331724 KB |
Output is correct |
44 |
Correct |
266 ms |
336212 KB |
Output is correct |
45 |
Correct |
226 ms |
337240 KB |
Output is correct |
46 |
Correct |
294 ms |
362480 KB |
Output is correct |
47 |
Correct |
363 ms |
345756 KB |
Output is correct |
48 |
Correct |
363 ms |
346112 KB |
Output is correct |
49 |
Correct |
255 ms |
344672 KB |
Output is correct |
50 |
Correct |
331 ms |
344632 KB |
Output is correct |
51 |
Correct |
351 ms |
347204 KB |
Output is correct |
52 |
Correct |
291 ms |
346600 KB |
Output is correct |
53 |
Correct |
383 ms |
346216 KB |
Output is correct |
54 |
Correct |
217 ms |
328996 KB |
Output is correct |
55 |
Correct |
182 ms |
328960 KB |
Output is correct |
56 |
Correct |
186 ms |
329076 KB |
Output is correct |
57 |
Correct |
185 ms |
329168 KB |
Output is correct |
58 |
Correct |
177 ms |
329032 KB |
Output is correct |
59 |
Correct |
188 ms |
329060 KB |
Output is correct |
60 |
Correct |
174 ms |
329080 KB |
Output is correct |
61 |
Correct |
202 ms |
329036 KB |
Output is correct |
62 |
Correct |
181 ms |
329224 KB |
Output is correct |
63 |
Correct |
183 ms |
328976 KB |
Output is correct |
64 |
Correct |
178 ms |
329040 KB |
Output is correct |
65 |
Correct |
184 ms |
329088 KB |
Output is correct |
66 |
Correct |
216 ms |
329068 KB |
Output is correct |
67 |
Correct |
204 ms |
329100 KB |
Output is correct |
68 |
Correct |
207 ms |
329008 KB |
Output is correct |
69 |
Correct |
218 ms |
329060 KB |
Output is correct |
70 |
Correct |
197 ms |
329132 KB |
Output is correct |
71 |
Correct |
199 ms |
329084 KB |
Output is correct |
72 |
Correct |
223 ms |
329020 KB |
Output is correct |
73 |
Correct |
240 ms |
329080 KB |
Output is correct |
74 |
Correct |
178 ms |
329064 KB |
Output is correct |
75 |
Correct |
199 ms |
329068 KB |
Output is correct |
76 |
Correct |
182 ms |
329036 KB |
Output is correct |
77 |
Correct |
170 ms |
329028 KB |
Output is correct |
78 |
Correct |
171 ms |
328988 KB |
Output is correct |
79 |
Correct |
171 ms |
329092 KB |
Output is correct |
80 |
Correct |
179 ms |
329032 KB |
Output is correct |
81 |
Correct |
182 ms |
329088 KB |
Output is correct |
82 |
Correct |
193 ms |
329056 KB |
Output is correct |
83 |
Correct |
179 ms |
329096 KB |
Output is correct |
84 |
Correct |
181 ms |
329056 KB |
Output is correct |
85 |
Correct |
171 ms |
329020 KB |
Output is correct |
86 |
Correct |
231 ms |
329036 KB |
Output is correct |
87 |
Correct |
236 ms |
329076 KB |
Output is correct |
88 |
Correct |
166 ms |
329076 KB |
Output is correct |
89 |
Correct |
163 ms |
329056 KB |
Output is correct |
90 |
Correct |
176 ms |
328956 KB |
Output is correct |
91 |
Correct |
188 ms |
329032 KB |
Output is correct |
92 |
Correct |
184 ms |
328980 KB |
Output is correct |
93 |
Correct |
172 ms |
329188 KB |
Output is correct |
94 |
Correct |
183 ms |
329104 KB |
Output is correct |
95 |
Correct |
185 ms |
328992 KB |
Output is correct |
96 |
Correct |
183 ms |
329104 KB |
Output is correct |
97 |
Correct |
203 ms |
329096 KB |
Output is correct |
98 |
Correct |
195 ms |
329080 KB |
Output is correct |
99 |
Correct |
203 ms |
329076 KB |
Output is correct |
100 |
Correct |
209 ms |
329064 KB |
Output is correct |
101 |
Correct |
198 ms |
329092 KB |
Output is correct |
102 |
Correct |
194 ms |
329068 KB |
Output is correct |
103 |
Correct |
211 ms |
329112 KB |
Output is correct |
104 |
Correct |
188 ms |
329080 KB |
Output is correct |
105 |
Correct |
184 ms |
329020 KB |
Output is correct |
106 |
Correct |
213 ms |
329032 KB |
Output is correct |
107 |
Correct |
200 ms |
329048 KB |
Output is correct |
108 |
Correct |
213 ms |
329100 KB |
Output is correct |
109 |
Correct |
184 ms |
329016 KB |
Output is correct |
110 |
Correct |
183 ms |
329460 KB |
Output is correct |
111 |
Correct |
196 ms |
330252 KB |
Output is correct |
112 |
Correct |
183 ms |
330404 KB |
Output is correct |
113 |
Correct |
180 ms |
330316 KB |
Output is correct |
114 |
Correct |
223 ms |
330400 KB |
Output is correct |
115 |
Correct |
178 ms |
330168 KB |
Output is correct |
116 |
Correct |
185 ms |
329884 KB |
Output is correct |
117 |
Correct |
182 ms |
329880 KB |
Output is correct |
118 |
Correct |
181 ms |
329784 KB |
Output is correct |
119 |
Correct |
180 ms |
331512 KB |
Output is correct |
120 |
Correct |
182 ms |
333004 KB |
Output is correct |
121 |
Correct |
181 ms |
332800 KB |
Output is correct |
122 |
Correct |
178 ms |
331900 KB |
Output is correct |
123 |
Correct |
180 ms |
331840 KB |
Output is correct |
124 |
Correct |
200 ms |
338116 KB |
Output is correct |
125 |
Correct |
242 ms |
351224 KB |
Output is correct |
126 |
Correct |
256 ms |
362576 KB |
Output is correct |
127 |
Correct |
270 ms |
362524 KB |
Output is correct |
128 |
Correct |
260 ms |
358272 KB |
Output is correct |
129 |
Correct |
269 ms |
358368 KB |
Output is correct |
130 |
Correct |
263 ms |
353604 KB |
Output is correct |
131 |
Correct |
273 ms |
353544 KB |
Output is correct |
132 |
Correct |
176 ms |
329776 KB |
Output is correct |
133 |
Correct |
174 ms |
329104 KB |
Output is correct |
134 |
Correct |
176 ms |
329156 KB |
Output is correct |
135 |
Correct |
168 ms |
329480 KB |
Output is correct |
136 |
Correct |
176 ms |
329496 KB |
Output is correct |
137 |
Correct |
181 ms |
330248 KB |
Output is correct |
138 |
Correct |
180 ms |
330380 KB |
Output is correct |
139 |
Correct |
188 ms |
329776 KB |
Output is correct |
140 |
Correct |
180 ms |
329772 KB |
Output is correct |
141 |
Correct |
174 ms |
330336 KB |
Output is correct |
142 |
Correct |
174 ms |
330328 KB |
Output is correct |
143 |
Correct |
179 ms |
330300 KB |
Output is correct |
144 |
Correct |
170 ms |
329764 KB |
Output is correct |
145 |
Correct |
175 ms |
329684 KB |
Output is correct |
146 |
Correct |
179 ms |
329676 KB |
Output is correct |
147 |
Correct |
180 ms |
329784 KB |
Output is correct |
148 |
Correct |
176 ms |
329740 KB |
Output is correct |
149 |
Correct |
189 ms |
329740 KB |
Output is correct |
150 |
Correct |
182 ms |
329828 KB |
Output is correct |
151 |
Correct |
171 ms |
329824 KB |
Output is correct |
152 |
Correct |
170 ms |
329824 KB |
Output is correct |
153 |
Correct |
181 ms |
329888 KB |
Output is correct |
154 |
Correct |
218 ms |
330700 KB |
Output is correct |
155 |
Correct |
177 ms |
329676 KB |
Output is correct |
156 |
Correct |
186 ms |
331496 KB |
Output is correct |
157 |
Correct |
189 ms |
330508 KB |
Output is correct |
158 |
Correct |
179 ms |
332896 KB |
Output is correct |
159 |
Correct |
188 ms |
330740 KB |
Output is correct |
160 |
Correct |
200 ms |
330744 KB |
Output is correct |
161 |
Correct |
176 ms |
332860 KB |
Output is correct |
162 |
Correct |
175 ms |
331960 KB |
Output is correct |
163 |
Correct |
176 ms |
331836 KB |
Output is correct |
164 |
Correct |
193 ms |
330732 KB |
Output is correct |
165 |
Correct |
189 ms |
330824 KB |
Output is correct |
166 |
Correct |
182 ms |
330808 KB |
Output is correct |
167 |
Correct |
187 ms |
330732 KB |
Output is correct |
168 |
Correct |
184 ms |
330872 KB |
Output is correct |
169 |
Correct |
194 ms |
330832 KB |
Output is correct |
170 |
Correct |
188 ms |
331060 KB |
Output is correct |
171 |
Correct |
187 ms |
331076 KB |
Output is correct |
172 |
Correct |
186 ms |
330832 KB |
Output is correct |
173 |
Correct |
185 ms |
330752 KB |
Output is correct |
174 |
Correct |
179 ms |
331008 KB |
Output is correct |
175 |
Correct |
209 ms |
332840 KB |
Output is correct |
176 |
Correct |
212 ms |
336904 KB |
Output is correct |
177 |
Correct |
249 ms |
339712 KB |
Output is correct |
178 |
Correct |
219 ms |
342296 KB |
Output is correct |
179 |
Correct |
279 ms |
344924 KB |
Output is correct |
180 |
Correct |
352 ms |
344900 KB |
Output is correct |
181 |
Correct |
339 ms |
346116 KB |
Output is correct |
182 |
Correct |
361 ms |
347608 KB |
Output is correct |
183 |
Correct |
329 ms |
348164 KB |
Output is correct |
184 |
Correct |
541 ms |
361724 KB |
Output is correct |
185 |
Correct |
282 ms |
345704 KB |
Output is correct |
186 |
Correct |
286 ms |
364924 KB |
Output is correct |
187 |
Correct |
255 ms |
353764 KB |
Output is correct |
188 |
Correct |
368 ms |
394472 KB |
Output is correct |
189 |
Correct |
547 ms |
362056 KB |
Output is correct |
190 |
Correct |
343 ms |
360512 KB |
Output is correct |
191 |
Correct |
354 ms |
394636 KB |
Output is correct |
192 |
Correct |
370 ms |
386040 KB |
Output is correct |
193 |
Correct |
424 ms |
386132 KB |
Output is correct |
194 |
Correct |
362 ms |
360828 KB |
Output is correct |
195 |
Correct |
450 ms |
359252 KB |
Output is correct |
196 |
Correct |
555 ms |
361632 KB |
Output is correct |
197 |
Correct |
430 ms |
360564 KB |
Output is correct |
198 |
Correct |
389 ms |
361740 KB |
Output is correct |
199 |
Correct |
542 ms |
363532 KB |
Output is correct |
200 |
Correct |
411 ms |
363628 KB |
Output is correct |
201 |
Correct |
455 ms |
362492 KB |
Output is correct |
202 |
Correct |
599 ms |
361908 KB |
Output is correct |
203 |
Correct |
1008 ms |
395000 KB |
Output is correct |
204 |
Correct |
435 ms |
372184 KB |
Output is correct |
205 |
Correct |
643 ms |
369652 KB |
Output is correct |
206 |
Correct |
427 ms |
388168 KB |
Output is correct |
207 |
Correct |
575 ms |
461736 KB |
Output is correct |
208 |
Correct |
939 ms |
392420 KB |
Output is correct |
209 |
Correct |
903 ms |
396976 KB |
Output is correct |
210 |
Correct |
588 ms |
462680 KB |
Output is correct |
211 |
Correct |
584 ms |
440676 KB |
Output is correct |
212 |
Correct |
571 ms |
444116 KB |
Output is correct |
213 |
Correct |
436 ms |
390108 KB |
Output is correct |
214 |
Correct |
729 ms |
392656 KB |
Output is correct |
215 |
Correct |
861 ms |
392040 KB |
Output is correct |
216 |
Correct |
793 ms |
393604 KB |
Output is correct |
217 |
Correct |
858 ms |
390404 KB |
Output is correct |
218 |
Correct |
909 ms |
395708 KB |
Output is correct |
219 |
Correct |
721 ms |
422168 KB |
Output is correct |
220 |
Correct |
535 ms |
424828 KB |
Output is correct |
221 |
Correct |
527 ms |
424608 KB |
Output is correct |
222 |
Correct |
789 ms |
438316 KB |
Output is correct |
223 |
Correct |
797 ms |
398412 KB |
Output is correct |
224 |
Correct |
891 ms |
393552 KB |
Output is correct |
225 |
Correct |
622 ms |
395880 KB |
Output is correct |