#include<bits/stdc++.h>
#define fi first
#define se second
using namespace std;
const int M=300;
const long long INF=1e18L+7;
const int Z=M+10;
const int ZD=M*M+10;
long long t[2*Z+10];
vector<tuple<int,long long,int>> items;
long long dp[2*ZD+10];
deque<pair<int,long long>> q;
void addq(int j,long long c)
{
while(!q.empty() && q.back().se<=c)
q.pop_back();
q.emplace_back(j,c);
return;
}
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int m;
long long l;
long long ans=0;
long long s=0;
cin>>m>>l;
for(int i=-m;i<=m;i++)
cin>>t[Z+i];
if(l<0)
{
l=-l;
for(int i=1;i<=m;i++)
swap(t[Z-i],t[Z+i]);
}
for(int i=-m;i<=m;i++)
s+=t[Z+i]*i;
if(l-s<=m)
{
s=0;
for(int i=-m;i<=m;i++)
{
long long tmp;
if(i<=0)
tmp=t[Z+i];
else
tmp=min(t[Z+i],(l-s)/i);
if(tmp>0)
{
ans+=tmp;
s+=tmp*i;
items.emplace_back(-i,tmp,-1);
}
if(tmp<t[Z+i])
items.emplace_back(i,t[Z+i]-tmp,1);
}
}
else
{
s=0;
for(int i=m;i>=-m;i--)
{
long long tmp;
if(i>=0)
tmp=t[Z+i];
else
tmp=max(0LL,min(t[Z+i],(s-l)/(-i)));
if(tmp>0)
{
ans+=tmp;
s+=tmp*i;
items.emplace_back(-i,tmp,-1);
}
if(tmp<t[Z+i])
items.emplace_back(i,t[Z+i]-tmp,1);
}
}
if(abs(l-s)>m)
{
cout<<"impossible\n";
return 0;
}
for(int i=0;i<=2*ZD;i++)
dp[i]=-INF;
dp[ZD]=ans;
for(auto [v,cnt,c]:items)
{
if(v>0)
{
for(int r=0;r<v;r++)
{
q.clear();
for(int i=r,j=0;i<=2*ZD;i+=v,j++)
{
addq(j,dp[i]-j*c);
if(q.front().fi+cnt<j)
q.pop_front();
dp[i]=q.front().se+j*c;
}
}
}
else
{
for(int r=2*ZD;r>2*ZD+v;r--)
{
q.clear();
for(int i=r,j=0;i>=0;i+=v,j++)
{
addq(j,dp[i]-j*c);
if(q.front().fi+cnt<j)
q.pop_front();
dp[i]=q.front().se+j*c;
}
}
}
}
if(dp[ZD+l-s]<0)
cout<<"impossible\n";
else
cout<<dp[ZD+l-s]<<"\n";
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
5 ms |
1620 KB |
Output is correct |
2 |
Correct |
5 ms |
1732 KB |
Output is correct |
3 |
Correct |
3 ms |
1620 KB |
Output is correct |
4 |
Correct |
13 ms |
1732 KB |
Output is correct |
5 |
Correct |
0 ms |
340 KB |
Output is correct |
6 |
Correct |
129 ms |
1720 KB |
Output is correct |
7 |
Correct |
69 ms |
1716 KB |
Output is correct |
8 |
Correct |
125 ms |
1720 KB |
Output is correct |
9 |
Correct |
143 ms |
1620 KB |
Output is correct |
10 |
Correct |
5 ms |
1620 KB |
Output is correct |
11 |
Correct |
8 ms |
1620 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
5 ms |
1620 KB |
Output is correct |
2 |
Correct |
5 ms |
1732 KB |
Output is correct |
3 |
Correct |
3 ms |
1620 KB |
Output is correct |
4 |
Correct |
13 ms |
1732 KB |
Output is correct |
5 |
Correct |
0 ms |
340 KB |
Output is correct |
6 |
Correct |
129 ms |
1720 KB |
Output is correct |
7 |
Correct |
69 ms |
1716 KB |
Output is correct |
8 |
Correct |
125 ms |
1720 KB |
Output is correct |
9 |
Correct |
143 ms |
1620 KB |
Output is correct |
10 |
Correct |
5 ms |
1620 KB |
Output is correct |
11 |
Correct |
8 ms |
1620 KB |
Output is correct |
12 |
Correct |
5 ms |
1620 KB |
Output is correct |
13 |
Correct |
4 ms |
1720 KB |
Output is correct |
14 |
Correct |
4 ms |
1620 KB |
Output is correct |
15 |
Correct |
14 ms |
1620 KB |
Output is correct |
16 |
Correct |
0 ms |
212 KB |
Output is correct |
17 |
Correct |
132 ms |
1720 KB |
Output is correct |
18 |
Correct |
64 ms |
1728 KB |
Output is correct |
19 |
Correct |
145 ms |
1724 KB |
Output is correct |
20 |
Correct |
137 ms |
1724 KB |
Output is correct |
21 |
Correct |
6 ms |
1620 KB |
Output is correct |
22 |
Correct |
9 ms |
1620 KB |
Output is correct |
23 |
Correct |
0 ms |
340 KB |
Output is correct |
24 |
Correct |
252 ms |
1720 KB |
Output is correct |
25 |
Correct |
102 ms |
1716 KB |
Output is correct |
26 |
Correct |
253 ms |
1740 KB |
Output is correct |
27 |
Correct |
244 ms |
1724 KB |
Output is correct |
28 |
Correct |
5 ms |
1620 KB |
Output is correct |
29 |
Correct |
9 ms |
1620 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
12 ms |
1728 KB |
Output is correct |
2 |
Correct |
41 ms |
1748 KB |
Output is correct |
3 |
Correct |
14 ms |
1744 KB |
Output is correct |
4 |
Correct |
42 ms |
2004 KB |
Output is correct |
5 |
Correct |
54 ms |
1788 KB |
Output is correct |
6 |
Correct |
38 ms |
2132 KB |
Output is correct |
7 |
Correct |
5 ms |
1748 KB |
Output is correct |
8 |
Correct |
8 ms |
1748 KB |
Output is correct |
9 |
Correct |
24 ms |
1952 KB |
Output is correct |
10 |
Correct |
31 ms |
1736 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
12 ms |
1728 KB |
Output is correct |
2 |
Correct |
41 ms |
1748 KB |
Output is correct |
3 |
Correct |
14 ms |
1744 KB |
Output is correct |
4 |
Correct |
42 ms |
2004 KB |
Output is correct |
5 |
Correct |
54 ms |
1788 KB |
Output is correct |
6 |
Correct |
38 ms |
2132 KB |
Output is correct |
7 |
Correct |
5 ms |
1748 KB |
Output is correct |
8 |
Correct |
8 ms |
1748 KB |
Output is correct |
9 |
Correct |
24 ms |
1952 KB |
Output is correct |
10 |
Correct |
31 ms |
1736 KB |
Output is correct |
11 |
Correct |
7 ms |
1736 KB |
Output is correct |
12 |
Correct |
5 ms |
1620 KB |
Output is correct |
13 |
Correct |
4 ms |
1620 KB |
Output is correct |
14 |
Correct |
16 ms |
1620 KB |
Output is correct |
15 |
Correct |
47 ms |
1848 KB |
Output is correct |
16 |
Correct |
14 ms |
1748 KB |
Output is correct |
17 |
Correct |
39 ms |
2076 KB |
Output is correct |
18 |
Correct |
43 ms |
1748 KB |
Output is correct |
19 |
Correct |
39 ms |
2232 KB |
Output is correct |
20 |
Correct |
5 ms |
1748 KB |
Output is correct |
21 |
Correct |
8 ms |
1788 KB |
Output is correct |
22 |
Correct |
23 ms |
1876 KB |
Output is correct |
23 |
Correct |
31 ms |
1736 KB |
Output is correct |
24 |
Correct |
83 ms |
1728 KB |
Output is correct |
25 |
Correct |
32 ms |
1732 KB |
Output is correct |
26 |
Correct |
75 ms |
1968 KB |
Output is correct |
27 |
Correct |
80 ms |
1740 KB |
Output is correct |
28 |
Correct |
75 ms |
2112 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
12 ms |
1728 KB |
Output is correct |
2 |
Correct |
41 ms |
1748 KB |
Output is correct |
3 |
Correct |
14 ms |
1744 KB |
Output is correct |
4 |
Correct |
42 ms |
2004 KB |
Output is correct |
5 |
Correct |
54 ms |
1788 KB |
Output is correct |
6 |
Correct |
38 ms |
2132 KB |
Output is correct |
7 |
Correct |
5 ms |
1748 KB |
Output is correct |
8 |
Correct |
8 ms |
1748 KB |
Output is correct |
9 |
Correct |
24 ms |
1952 KB |
Output is correct |
10 |
Correct |
31 ms |
1736 KB |
Output is correct |
11 |
Correct |
14 ms |
1732 KB |
Output is correct |
12 |
Correct |
43 ms |
1860 KB |
Output is correct |
13 |
Correct |
13 ms |
1748 KB |
Output is correct |
14 |
Correct |
42 ms |
2076 KB |
Output is correct |
15 |
Correct |
45 ms |
1748 KB |
Output is correct |
16 |
Correct |
36 ms |
2128 KB |
Output is correct |
17 |
Correct |
4 ms |
1748 KB |
Output is correct |
18 |
Correct |
8 ms |
1748 KB |
Output is correct |
19 |
Correct |
25 ms |
1864 KB |
Output is correct |
20 |
Correct |
29 ms |
1748 KB |
Output is correct |
21 |
Correct |
6 ms |
1620 KB |
Output is correct |
22 |
Correct |
9 ms |
1620 KB |
Output is correct |
23 |
Correct |
73 ms |
1804 KB |
Output is correct |
24 |
Correct |
29 ms |
1740 KB |
Output is correct |
25 |
Correct |
70 ms |
1964 KB |
Output is correct |
26 |
Correct |
66 ms |
1856 KB |
Output is correct |
27 |
Correct |
58 ms |
2100 KB |
Output is correct |
28 |
Correct |
50 ms |
1748 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
5 ms |
1620 KB |
Output is correct |
2 |
Correct |
5 ms |
1732 KB |
Output is correct |
3 |
Correct |
3 ms |
1620 KB |
Output is correct |
4 |
Correct |
13 ms |
1732 KB |
Output is correct |
5 |
Correct |
0 ms |
340 KB |
Output is correct |
6 |
Correct |
129 ms |
1720 KB |
Output is correct |
7 |
Correct |
69 ms |
1716 KB |
Output is correct |
8 |
Correct |
125 ms |
1720 KB |
Output is correct |
9 |
Correct |
143 ms |
1620 KB |
Output is correct |
10 |
Correct |
5 ms |
1620 KB |
Output is correct |
11 |
Correct |
8 ms |
1620 KB |
Output is correct |
12 |
Correct |
12 ms |
1728 KB |
Output is correct |
13 |
Correct |
41 ms |
1748 KB |
Output is correct |
14 |
Correct |
14 ms |
1744 KB |
Output is correct |
15 |
Correct |
42 ms |
2004 KB |
Output is correct |
16 |
Correct |
54 ms |
1788 KB |
Output is correct |
17 |
Correct |
38 ms |
2132 KB |
Output is correct |
18 |
Correct |
5 ms |
1748 KB |
Output is correct |
19 |
Correct |
8 ms |
1748 KB |
Output is correct |
20 |
Correct |
24 ms |
1952 KB |
Output is correct |
21 |
Correct |
31 ms |
1736 KB |
Output is correct |
22 |
Correct |
7 ms |
1736 KB |
Output is correct |
23 |
Correct |
5 ms |
1620 KB |
Output is correct |
24 |
Correct |
4 ms |
1620 KB |
Output is correct |
25 |
Correct |
16 ms |
1620 KB |
Output is correct |
26 |
Correct |
47 ms |
1848 KB |
Output is correct |
27 |
Correct |
14 ms |
1748 KB |
Output is correct |
28 |
Correct |
39 ms |
2076 KB |
Output is correct |
29 |
Correct |
43 ms |
1748 KB |
Output is correct |
30 |
Correct |
39 ms |
2232 KB |
Output is correct |
31 |
Correct |
5 ms |
1748 KB |
Output is correct |
32 |
Correct |
8 ms |
1788 KB |
Output is correct |
33 |
Correct |
23 ms |
1876 KB |
Output is correct |
34 |
Correct |
31 ms |
1736 KB |
Output is correct |
35 |
Correct |
83 ms |
1728 KB |
Output is correct |
36 |
Correct |
32 ms |
1732 KB |
Output is correct |
37 |
Correct |
75 ms |
1968 KB |
Output is correct |
38 |
Correct |
80 ms |
1740 KB |
Output is correct |
39 |
Correct |
75 ms |
2112 KB |
Output is correct |
40 |
Correct |
14 ms |
1732 KB |
Output is correct |
41 |
Correct |
43 ms |
1860 KB |
Output is correct |
42 |
Correct |
13 ms |
1748 KB |
Output is correct |
43 |
Correct |
42 ms |
2076 KB |
Output is correct |
44 |
Correct |
45 ms |
1748 KB |
Output is correct |
45 |
Correct |
36 ms |
2128 KB |
Output is correct |
46 |
Correct |
4 ms |
1748 KB |
Output is correct |
47 |
Correct |
8 ms |
1748 KB |
Output is correct |
48 |
Correct |
25 ms |
1864 KB |
Output is correct |
49 |
Correct |
29 ms |
1748 KB |
Output is correct |
50 |
Correct |
6 ms |
1620 KB |
Output is correct |
51 |
Correct |
9 ms |
1620 KB |
Output is correct |
52 |
Correct |
73 ms |
1804 KB |
Output is correct |
53 |
Correct |
29 ms |
1740 KB |
Output is correct |
54 |
Correct |
70 ms |
1964 KB |
Output is correct |
55 |
Correct |
66 ms |
1856 KB |
Output is correct |
56 |
Correct |
58 ms |
2100 KB |
Output is correct |
57 |
Correct |
50 ms |
1748 KB |
Output is correct |
58 |
Correct |
6 ms |
1620 KB |
Output is correct |
59 |
Correct |
6 ms |
1732 KB |
Output is correct |
60 |
Correct |
4 ms |
1620 KB |
Output is correct |
61 |
Correct |
13 ms |
1736 KB |
Output is correct |
62 |
Correct |
0 ms |
340 KB |
Output is correct |
63 |
Correct |
127 ms |
1724 KB |
Output is correct |
64 |
Correct |
63 ms |
1712 KB |
Output is correct |
65 |
Correct |
126 ms |
1716 KB |
Output is correct |
66 |
Correct |
135 ms |
1620 KB |
Output is correct |
67 |
Correct |
5 ms |
1732 KB |
Output is correct |
68 |
Correct |
8 ms |
1620 KB |
Output is correct |
69 |
Correct |
48 ms |
1748 KB |
Output is correct |
70 |
Correct |
16 ms |
1748 KB |
Output is correct |
71 |
Correct |
43 ms |
2104 KB |
Output is correct |
72 |
Correct |
48 ms |
1748 KB |
Output is correct |
73 |
Correct |
37 ms |
2212 KB |
Output is correct |
74 |
Correct |
5 ms |
1748 KB |
Output is correct |
75 |
Correct |
8 ms |
1784 KB |
Output is correct |
76 |
Correct |
23 ms |
1876 KB |
Output is correct |
77 |
Correct |
30 ms |
1748 KB |
Output is correct |
78 |
Correct |
74 ms |
1868 KB |
Output is correct |
79 |
Correct |
32 ms |
1740 KB |
Output is correct |
80 |
Correct |
116 ms |
1972 KB |
Output is correct |
81 |
Correct |
86 ms |
1740 KB |
Output is correct |
82 |
Correct |
69 ms |
2108 KB |
Output is correct |
83 |
Correct |
68 ms |
1748 KB |
Output is correct |
84 |
Correct |
30 ms |
1744 KB |
Output is correct |
85 |
Correct |
63 ms |
1876 KB |
Output is correct |
86 |
Correct |
64 ms |
1928 KB |
Output is correct |
87 |
Correct |
67 ms |
2100 KB |
Output is correct |
88 |
Correct |
49 ms |
1748 KB |
Output is correct |
89 |
Correct |
124 ms |
1720 KB |
Output is correct |
90 |
Correct |
124 ms |
1848 KB |
Output is correct |
91 |
Correct |
192 ms |
1972 KB |
Output is correct |
92 |
Correct |
159 ms |
2116 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
12 ms |
1728 KB |
Output is correct |
2 |
Correct |
41 ms |
1748 KB |
Output is correct |
3 |
Correct |
14 ms |
1744 KB |
Output is correct |
4 |
Correct |
42 ms |
2004 KB |
Output is correct |
5 |
Correct |
54 ms |
1788 KB |
Output is correct |
6 |
Correct |
38 ms |
2132 KB |
Output is correct |
7 |
Correct |
5 ms |
1748 KB |
Output is correct |
8 |
Correct |
8 ms |
1748 KB |
Output is correct |
9 |
Correct |
24 ms |
1952 KB |
Output is correct |
10 |
Correct |
31 ms |
1736 KB |
Output is correct |
11 |
Correct |
14 ms |
1732 KB |
Output is correct |
12 |
Correct |
43 ms |
1860 KB |
Output is correct |
13 |
Correct |
13 ms |
1748 KB |
Output is correct |
14 |
Correct |
42 ms |
2076 KB |
Output is correct |
15 |
Correct |
45 ms |
1748 KB |
Output is correct |
16 |
Correct |
36 ms |
2128 KB |
Output is correct |
17 |
Correct |
4 ms |
1748 KB |
Output is correct |
18 |
Correct |
8 ms |
1748 KB |
Output is correct |
19 |
Correct |
25 ms |
1864 KB |
Output is correct |
20 |
Correct |
29 ms |
1748 KB |
Output is correct |
21 |
Correct |
6 ms |
1620 KB |
Output is correct |
22 |
Correct |
9 ms |
1620 KB |
Output is correct |
23 |
Correct |
73 ms |
1804 KB |
Output is correct |
24 |
Correct |
29 ms |
1740 KB |
Output is correct |
25 |
Correct |
70 ms |
1964 KB |
Output is correct |
26 |
Correct |
66 ms |
1856 KB |
Output is correct |
27 |
Correct |
58 ms |
2100 KB |
Output is correct |
28 |
Correct |
50 ms |
1748 KB |
Output is correct |
29 |
Correct |
13 ms |
1620 KB |
Output is correct |
30 |
Correct |
44 ms |
1848 KB |
Output is correct |
31 |
Correct |
15 ms |
1748 KB |
Output is correct |
32 |
Correct |
40 ms |
2004 KB |
Output is correct |
33 |
Correct |
42 ms |
1748 KB |
Output is correct |
34 |
Correct |
37 ms |
2252 KB |
Output is correct |
35 |
Correct |
6 ms |
1748 KB |
Output is correct |
36 |
Correct |
9 ms |
1732 KB |
Output is correct |
37 |
Correct |
25 ms |
1876 KB |
Output is correct |
38 |
Correct |
32 ms |
1748 KB |
Output is correct |
39 |
Correct |
5 ms |
1620 KB |
Output is correct |
40 |
Correct |
8 ms |
1736 KB |
Output is correct |
41 |
Correct |
72 ms |
1748 KB |
Output is correct |
42 |
Correct |
32 ms |
1736 KB |
Output is correct |
43 |
Correct |
66 ms |
1876 KB |
Output is correct |
44 |
Correct |
66 ms |
1928 KB |
Output is correct |
45 |
Correct |
64 ms |
2104 KB |
Output is correct |
46 |
Correct |
49 ms |
1792 KB |
Output is correct |
47 |
Correct |
4 ms |
1620 KB |
Output is correct |
48 |
Correct |
8 ms |
1740 KB |
Output is correct |
49 |
Correct |
127 ms |
2108 KB |
Output is correct |
50 |
Correct |
56 ms |
1736 KB |
Output is correct |
51 |
Correct |
126 ms |
2120 KB |
Output is correct |
52 |
Correct |
136 ms |
2016 KB |
Output is correct |
53 |
Correct |
110 ms |
2096 KB |
Output is correct |
54 |
Correct |
110 ms |
1876 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
5 ms |
1620 KB |
Output is correct |
2 |
Correct |
5 ms |
1732 KB |
Output is correct |
3 |
Correct |
3 ms |
1620 KB |
Output is correct |
4 |
Correct |
13 ms |
1732 KB |
Output is correct |
5 |
Correct |
0 ms |
340 KB |
Output is correct |
6 |
Correct |
129 ms |
1720 KB |
Output is correct |
7 |
Correct |
69 ms |
1716 KB |
Output is correct |
8 |
Correct |
125 ms |
1720 KB |
Output is correct |
9 |
Correct |
143 ms |
1620 KB |
Output is correct |
10 |
Correct |
5 ms |
1620 KB |
Output is correct |
11 |
Correct |
8 ms |
1620 KB |
Output is correct |
12 |
Correct |
5 ms |
1620 KB |
Output is correct |
13 |
Correct |
4 ms |
1720 KB |
Output is correct |
14 |
Correct |
4 ms |
1620 KB |
Output is correct |
15 |
Correct |
14 ms |
1620 KB |
Output is correct |
16 |
Correct |
0 ms |
212 KB |
Output is correct |
17 |
Correct |
132 ms |
1720 KB |
Output is correct |
18 |
Correct |
64 ms |
1728 KB |
Output is correct |
19 |
Correct |
145 ms |
1724 KB |
Output is correct |
20 |
Correct |
137 ms |
1724 KB |
Output is correct |
21 |
Correct |
6 ms |
1620 KB |
Output is correct |
22 |
Correct |
9 ms |
1620 KB |
Output is correct |
23 |
Correct |
0 ms |
340 KB |
Output is correct |
24 |
Correct |
252 ms |
1720 KB |
Output is correct |
25 |
Correct |
102 ms |
1716 KB |
Output is correct |
26 |
Correct |
253 ms |
1740 KB |
Output is correct |
27 |
Correct |
244 ms |
1724 KB |
Output is correct |
28 |
Correct |
5 ms |
1620 KB |
Output is correct |
29 |
Correct |
9 ms |
1620 KB |
Output is correct |
30 |
Correct |
12 ms |
1728 KB |
Output is correct |
31 |
Correct |
41 ms |
1748 KB |
Output is correct |
32 |
Correct |
14 ms |
1744 KB |
Output is correct |
33 |
Correct |
42 ms |
2004 KB |
Output is correct |
34 |
Correct |
54 ms |
1788 KB |
Output is correct |
35 |
Correct |
38 ms |
2132 KB |
Output is correct |
36 |
Correct |
5 ms |
1748 KB |
Output is correct |
37 |
Correct |
8 ms |
1748 KB |
Output is correct |
38 |
Correct |
24 ms |
1952 KB |
Output is correct |
39 |
Correct |
31 ms |
1736 KB |
Output is correct |
40 |
Correct |
7 ms |
1736 KB |
Output is correct |
41 |
Correct |
5 ms |
1620 KB |
Output is correct |
42 |
Correct |
4 ms |
1620 KB |
Output is correct |
43 |
Correct |
16 ms |
1620 KB |
Output is correct |
44 |
Correct |
47 ms |
1848 KB |
Output is correct |
45 |
Correct |
14 ms |
1748 KB |
Output is correct |
46 |
Correct |
39 ms |
2076 KB |
Output is correct |
47 |
Correct |
43 ms |
1748 KB |
Output is correct |
48 |
Correct |
39 ms |
2232 KB |
Output is correct |
49 |
Correct |
5 ms |
1748 KB |
Output is correct |
50 |
Correct |
8 ms |
1788 KB |
Output is correct |
51 |
Correct |
23 ms |
1876 KB |
Output is correct |
52 |
Correct |
31 ms |
1736 KB |
Output is correct |
53 |
Correct |
83 ms |
1728 KB |
Output is correct |
54 |
Correct |
32 ms |
1732 KB |
Output is correct |
55 |
Correct |
75 ms |
1968 KB |
Output is correct |
56 |
Correct |
80 ms |
1740 KB |
Output is correct |
57 |
Correct |
75 ms |
2112 KB |
Output is correct |
58 |
Correct |
14 ms |
1732 KB |
Output is correct |
59 |
Correct |
43 ms |
1860 KB |
Output is correct |
60 |
Correct |
13 ms |
1748 KB |
Output is correct |
61 |
Correct |
42 ms |
2076 KB |
Output is correct |
62 |
Correct |
45 ms |
1748 KB |
Output is correct |
63 |
Correct |
36 ms |
2128 KB |
Output is correct |
64 |
Correct |
4 ms |
1748 KB |
Output is correct |
65 |
Correct |
8 ms |
1748 KB |
Output is correct |
66 |
Correct |
25 ms |
1864 KB |
Output is correct |
67 |
Correct |
29 ms |
1748 KB |
Output is correct |
68 |
Correct |
6 ms |
1620 KB |
Output is correct |
69 |
Correct |
9 ms |
1620 KB |
Output is correct |
70 |
Correct |
73 ms |
1804 KB |
Output is correct |
71 |
Correct |
29 ms |
1740 KB |
Output is correct |
72 |
Correct |
70 ms |
1964 KB |
Output is correct |
73 |
Correct |
66 ms |
1856 KB |
Output is correct |
74 |
Correct |
58 ms |
2100 KB |
Output is correct |
75 |
Correct |
50 ms |
1748 KB |
Output is correct |
76 |
Correct |
6 ms |
1620 KB |
Output is correct |
77 |
Correct |
6 ms |
1732 KB |
Output is correct |
78 |
Correct |
4 ms |
1620 KB |
Output is correct |
79 |
Correct |
13 ms |
1736 KB |
Output is correct |
80 |
Correct |
0 ms |
340 KB |
Output is correct |
81 |
Correct |
127 ms |
1724 KB |
Output is correct |
82 |
Correct |
63 ms |
1712 KB |
Output is correct |
83 |
Correct |
126 ms |
1716 KB |
Output is correct |
84 |
Correct |
135 ms |
1620 KB |
Output is correct |
85 |
Correct |
5 ms |
1732 KB |
Output is correct |
86 |
Correct |
8 ms |
1620 KB |
Output is correct |
87 |
Correct |
48 ms |
1748 KB |
Output is correct |
88 |
Correct |
16 ms |
1748 KB |
Output is correct |
89 |
Correct |
43 ms |
2104 KB |
Output is correct |
90 |
Correct |
48 ms |
1748 KB |
Output is correct |
91 |
Correct |
37 ms |
2212 KB |
Output is correct |
92 |
Correct |
5 ms |
1748 KB |
Output is correct |
93 |
Correct |
8 ms |
1784 KB |
Output is correct |
94 |
Correct |
23 ms |
1876 KB |
Output is correct |
95 |
Correct |
30 ms |
1748 KB |
Output is correct |
96 |
Correct |
74 ms |
1868 KB |
Output is correct |
97 |
Correct |
32 ms |
1740 KB |
Output is correct |
98 |
Correct |
116 ms |
1972 KB |
Output is correct |
99 |
Correct |
86 ms |
1740 KB |
Output is correct |
100 |
Correct |
69 ms |
2108 KB |
Output is correct |
101 |
Correct |
68 ms |
1748 KB |
Output is correct |
102 |
Correct |
30 ms |
1744 KB |
Output is correct |
103 |
Correct |
63 ms |
1876 KB |
Output is correct |
104 |
Correct |
64 ms |
1928 KB |
Output is correct |
105 |
Correct |
67 ms |
2100 KB |
Output is correct |
106 |
Correct |
49 ms |
1748 KB |
Output is correct |
107 |
Correct |
124 ms |
1720 KB |
Output is correct |
108 |
Correct |
124 ms |
1848 KB |
Output is correct |
109 |
Correct |
192 ms |
1972 KB |
Output is correct |
110 |
Correct |
159 ms |
2116 KB |
Output is correct |
111 |
Correct |
13 ms |
1620 KB |
Output is correct |
112 |
Correct |
44 ms |
1848 KB |
Output is correct |
113 |
Correct |
15 ms |
1748 KB |
Output is correct |
114 |
Correct |
40 ms |
2004 KB |
Output is correct |
115 |
Correct |
42 ms |
1748 KB |
Output is correct |
116 |
Correct |
37 ms |
2252 KB |
Output is correct |
117 |
Correct |
6 ms |
1748 KB |
Output is correct |
118 |
Correct |
9 ms |
1732 KB |
Output is correct |
119 |
Correct |
25 ms |
1876 KB |
Output is correct |
120 |
Correct |
32 ms |
1748 KB |
Output is correct |
121 |
Correct |
5 ms |
1620 KB |
Output is correct |
122 |
Correct |
8 ms |
1736 KB |
Output is correct |
123 |
Correct |
72 ms |
1748 KB |
Output is correct |
124 |
Correct |
32 ms |
1736 KB |
Output is correct |
125 |
Correct |
66 ms |
1876 KB |
Output is correct |
126 |
Correct |
66 ms |
1928 KB |
Output is correct |
127 |
Correct |
64 ms |
2104 KB |
Output is correct |
128 |
Correct |
49 ms |
1792 KB |
Output is correct |
129 |
Correct |
4 ms |
1620 KB |
Output is correct |
130 |
Correct |
8 ms |
1740 KB |
Output is correct |
131 |
Correct |
127 ms |
2108 KB |
Output is correct |
132 |
Correct |
56 ms |
1736 KB |
Output is correct |
133 |
Correct |
126 ms |
2120 KB |
Output is correct |
134 |
Correct |
136 ms |
2016 KB |
Output is correct |
135 |
Correct |
110 ms |
2096 KB |
Output is correct |
136 |
Correct |
110 ms |
1876 KB |
Output is correct |
137 |
Correct |
6 ms |
1620 KB |
Output is correct |
138 |
Correct |
5 ms |
1620 KB |
Output is correct |
139 |
Correct |
4 ms |
1620 KB |
Output is correct |
140 |
Correct |
17 ms |
1736 KB |
Output is correct |
141 |
Correct |
0 ms |
212 KB |
Output is correct |
142 |
Correct |
131 ms |
1720 KB |
Output is correct |
143 |
Correct |
64 ms |
1620 KB |
Output is correct |
144 |
Correct |
126 ms |
1724 KB |
Output is correct |
145 |
Correct |
129 ms |
1620 KB |
Output is correct |
146 |
Correct |
5 ms |
1620 KB |
Output is correct |
147 |
Correct |
8 ms |
1732 KB |
Output is correct |
148 |
Correct |
0 ms |
340 KB |
Output is correct |
149 |
Correct |
251 ms |
1724 KB |
Output is correct |
150 |
Correct |
97 ms |
1620 KB |
Output is correct |
151 |
Correct |
241 ms |
1720 KB |
Output is correct |
152 |
Correct |
238 ms |
1728 KB |
Output is correct |
153 |
Correct |
5 ms |
1620 KB |
Output is correct |
154 |
Correct |
9 ms |
1728 KB |
Output is correct |
155 |
Correct |
41 ms |
1848 KB |
Output is correct |
156 |
Correct |
13 ms |
1748 KB |
Output is correct |
157 |
Correct |
40 ms |
2108 KB |
Output is correct |
158 |
Correct |
41 ms |
1784 KB |
Output is correct |
159 |
Correct |
59 ms |
2116 KB |
Output is correct |
160 |
Correct |
5 ms |
1748 KB |
Output is correct |
161 |
Correct |
10 ms |
1748 KB |
Output is correct |
162 |
Correct |
28 ms |
1864 KB |
Output is correct |
163 |
Correct |
30 ms |
1748 KB |
Output is correct |
164 |
Correct |
69 ms |
1748 KB |
Output is correct |
165 |
Correct |
28 ms |
1748 KB |
Output is correct |
166 |
Correct |
64 ms |
1968 KB |
Output is correct |
167 |
Correct |
62 ms |
1928 KB |
Output is correct |
168 |
Correct |
59 ms |
2116 KB |
Output is correct |
169 |
Correct |
49 ms |
1748 KB |
Output is correct |
170 |
Correct |
78 ms |
1840 KB |
Output is correct |
171 |
Correct |
28 ms |
1736 KB |
Output is correct |
172 |
Correct |
73 ms |
2012 KB |
Output is correct |
173 |
Correct |
72 ms |
1728 KB |
Output is correct |
174 |
Correct |
71 ms |
2124 KB |
Output is correct |
175 |
Correct |
122 ms |
1780 KB |
Output is correct |
176 |
Correct |
121 ms |
1868 KB |
Output is correct |
177 |
Correct |
199 ms |
1848 KB |
Output is correct |
178 |
Correct |
114 ms |
2104 KB |
Output is correct |
179 |
Correct |
151 ms |
2108 KB |
Output is correct |
180 |
Correct |
57 ms |
1752 KB |
Output is correct |
181 |
Correct |
123 ms |
2220 KB |
Output is correct |
182 |
Correct |
130 ms |
2000 KB |
Output is correct |
183 |
Correct |
113 ms |
2108 KB |
Output is correct |
184 |
Correct |
117 ms |
1972 KB |
Output is correct |
185 |
Correct |
238 ms |
1888 KB |
Output is correct |
186 |
Correct |
241 ms |
2092 KB |
Output is correct |
187 |
Correct |
356 ms |
2096 KB |
Output is correct |
188 |
Correct |
351 ms |
2080 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
12 ms |
1728 KB |
Output is correct |
2 |
Correct |
41 ms |
1748 KB |
Output is correct |
3 |
Correct |
14 ms |
1744 KB |
Output is correct |
4 |
Correct |
42 ms |
2004 KB |
Output is correct |
5 |
Correct |
54 ms |
1788 KB |
Output is correct |
6 |
Correct |
38 ms |
2132 KB |
Output is correct |
7 |
Correct |
5 ms |
1748 KB |
Output is correct |
8 |
Correct |
8 ms |
1748 KB |
Output is correct |
9 |
Correct |
24 ms |
1952 KB |
Output is correct |
10 |
Correct |
31 ms |
1736 KB |
Output is correct |
11 |
Correct |
14 ms |
1732 KB |
Output is correct |
12 |
Correct |
43 ms |
1860 KB |
Output is correct |
13 |
Correct |
13 ms |
1748 KB |
Output is correct |
14 |
Correct |
42 ms |
2076 KB |
Output is correct |
15 |
Correct |
45 ms |
1748 KB |
Output is correct |
16 |
Correct |
36 ms |
2128 KB |
Output is correct |
17 |
Correct |
4 ms |
1748 KB |
Output is correct |
18 |
Correct |
8 ms |
1748 KB |
Output is correct |
19 |
Correct |
25 ms |
1864 KB |
Output is correct |
20 |
Correct |
29 ms |
1748 KB |
Output is correct |
21 |
Correct |
6 ms |
1620 KB |
Output is correct |
22 |
Correct |
9 ms |
1620 KB |
Output is correct |
23 |
Correct |
73 ms |
1804 KB |
Output is correct |
24 |
Correct |
29 ms |
1740 KB |
Output is correct |
25 |
Correct |
70 ms |
1964 KB |
Output is correct |
26 |
Correct |
66 ms |
1856 KB |
Output is correct |
27 |
Correct |
58 ms |
2100 KB |
Output is correct |
28 |
Correct |
50 ms |
1748 KB |
Output is correct |
29 |
Correct |
13 ms |
1620 KB |
Output is correct |
30 |
Correct |
44 ms |
1848 KB |
Output is correct |
31 |
Correct |
15 ms |
1748 KB |
Output is correct |
32 |
Correct |
40 ms |
2004 KB |
Output is correct |
33 |
Correct |
42 ms |
1748 KB |
Output is correct |
34 |
Correct |
37 ms |
2252 KB |
Output is correct |
35 |
Correct |
6 ms |
1748 KB |
Output is correct |
36 |
Correct |
9 ms |
1732 KB |
Output is correct |
37 |
Correct |
25 ms |
1876 KB |
Output is correct |
38 |
Correct |
32 ms |
1748 KB |
Output is correct |
39 |
Correct |
5 ms |
1620 KB |
Output is correct |
40 |
Correct |
8 ms |
1736 KB |
Output is correct |
41 |
Correct |
72 ms |
1748 KB |
Output is correct |
42 |
Correct |
32 ms |
1736 KB |
Output is correct |
43 |
Correct |
66 ms |
1876 KB |
Output is correct |
44 |
Correct |
66 ms |
1928 KB |
Output is correct |
45 |
Correct |
64 ms |
2104 KB |
Output is correct |
46 |
Correct |
49 ms |
1792 KB |
Output is correct |
47 |
Correct |
4 ms |
1620 KB |
Output is correct |
48 |
Correct |
8 ms |
1740 KB |
Output is correct |
49 |
Correct |
127 ms |
2108 KB |
Output is correct |
50 |
Correct |
56 ms |
1736 KB |
Output is correct |
51 |
Correct |
126 ms |
2120 KB |
Output is correct |
52 |
Correct |
136 ms |
2016 KB |
Output is correct |
53 |
Correct |
110 ms |
2096 KB |
Output is correct |
54 |
Correct |
110 ms |
1876 KB |
Output is correct |
55 |
Correct |
13 ms |
1620 KB |
Output is correct |
56 |
Correct |
41 ms |
1848 KB |
Output is correct |
57 |
Correct |
14 ms |
1740 KB |
Output is correct |
58 |
Correct |
39 ms |
2004 KB |
Output is correct |
59 |
Correct |
43 ms |
1748 KB |
Output is correct |
60 |
Correct |
38 ms |
2132 KB |
Output is correct |
61 |
Correct |
5 ms |
1748 KB |
Output is correct |
62 |
Correct |
8 ms |
1748 KB |
Output is correct |
63 |
Correct |
24 ms |
1876 KB |
Output is correct |
64 |
Correct |
35 ms |
1752 KB |
Output is correct |
65 |
Correct |
5 ms |
1620 KB |
Output is correct |
66 |
Correct |
8 ms |
1732 KB |
Output is correct |
67 |
Correct |
68 ms |
1748 KB |
Output is correct |
68 |
Correct |
28 ms |
1748 KB |
Output is correct |
69 |
Correct |
64 ms |
1876 KB |
Output is correct |
70 |
Correct |
64 ms |
1876 KB |
Output is correct |
71 |
Correct |
62 ms |
2100 KB |
Output is correct |
72 |
Correct |
48 ms |
1788 KB |
Output is correct |
73 |
Correct |
4 ms |
1732 KB |
Output is correct |
74 |
Correct |
8 ms |
1856 KB |
Output is correct |
75 |
Correct |
134 ms |
2108 KB |
Output is correct |
76 |
Correct |
55 ms |
1732 KB |
Output is correct |
77 |
Correct |
194 ms |
2132 KB |
Output is correct |
78 |
Correct |
137 ms |
2028 KB |
Output is correct |
79 |
Correct |
116 ms |
2108 KB |
Output is correct |
80 |
Correct |
123 ms |
1972 KB |
Output is correct |
81 |
Correct |
414 ms |
1876 KB |
Output is correct |
82 |
Correct |
176 ms |
1752 KB |
Output is correct |
83 |
Correct |
404 ms |
1828 KB |
Output is correct |
84 |
Correct |
362 ms |
2124 KB |
Output is correct |
85 |
Correct |
5 ms |
1748 KB |
Output is correct |
86 |
Correct |
11 ms |
1748 KB |
Output is correct |
87 |
Correct |
329 ms |
2004 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
5 ms |
1620 KB |
Output is correct |
2 |
Correct |
5 ms |
1732 KB |
Output is correct |
3 |
Correct |
3 ms |
1620 KB |
Output is correct |
4 |
Correct |
13 ms |
1732 KB |
Output is correct |
5 |
Correct |
0 ms |
340 KB |
Output is correct |
6 |
Correct |
129 ms |
1720 KB |
Output is correct |
7 |
Correct |
69 ms |
1716 KB |
Output is correct |
8 |
Correct |
125 ms |
1720 KB |
Output is correct |
9 |
Correct |
143 ms |
1620 KB |
Output is correct |
10 |
Correct |
5 ms |
1620 KB |
Output is correct |
11 |
Correct |
8 ms |
1620 KB |
Output is correct |
12 |
Correct |
5 ms |
1620 KB |
Output is correct |
13 |
Correct |
4 ms |
1720 KB |
Output is correct |
14 |
Correct |
4 ms |
1620 KB |
Output is correct |
15 |
Correct |
14 ms |
1620 KB |
Output is correct |
16 |
Correct |
0 ms |
212 KB |
Output is correct |
17 |
Correct |
132 ms |
1720 KB |
Output is correct |
18 |
Correct |
64 ms |
1728 KB |
Output is correct |
19 |
Correct |
145 ms |
1724 KB |
Output is correct |
20 |
Correct |
137 ms |
1724 KB |
Output is correct |
21 |
Correct |
6 ms |
1620 KB |
Output is correct |
22 |
Correct |
9 ms |
1620 KB |
Output is correct |
23 |
Correct |
0 ms |
340 KB |
Output is correct |
24 |
Correct |
252 ms |
1720 KB |
Output is correct |
25 |
Correct |
102 ms |
1716 KB |
Output is correct |
26 |
Correct |
253 ms |
1740 KB |
Output is correct |
27 |
Correct |
244 ms |
1724 KB |
Output is correct |
28 |
Correct |
5 ms |
1620 KB |
Output is correct |
29 |
Correct |
9 ms |
1620 KB |
Output is correct |
30 |
Correct |
12 ms |
1728 KB |
Output is correct |
31 |
Correct |
41 ms |
1748 KB |
Output is correct |
32 |
Correct |
14 ms |
1744 KB |
Output is correct |
33 |
Correct |
42 ms |
2004 KB |
Output is correct |
34 |
Correct |
54 ms |
1788 KB |
Output is correct |
35 |
Correct |
38 ms |
2132 KB |
Output is correct |
36 |
Correct |
5 ms |
1748 KB |
Output is correct |
37 |
Correct |
8 ms |
1748 KB |
Output is correct |
38 |
Correct |
24 ms |
1952 KB |
Output is correct |
39 |
Correct |
31 ms |
1736 KB |
Output is correct |
40 |
Correct |
7 ms |
1736 KB |
Output is correct |
41 |
Correct |
5 ms |
1620 KB |
Output is correct |
42 |
Correct |
4 ms |
1620 KB |
Output is correct |
43 |
Correct |
16 ms |
1620 KB |
Output is correct |
44 |
Correct |
47 ms |
1848 KB |
Output is correct |
45 |
Correct |
14 ms |
1748 KB |
Output is correct |
46 |
Correct |
39 ms |
2076 KB |
Output is correct |
47 |
Correct |
43 ms |
1748 KB |
Output is correct |
48 |
Correct |
39 ms |
2232 KB |
Output is correct |
49 |
Correct |
5 ms |
1748 KB |
Output is correct |
50 |
Correct |
8 ms |
1788 KB |
Output is correct |
51 |
Correct |
23 ms |
1876 KB |
Output is correct |
52 |
Correct |
31 ms |
1736 KB |
Output is correct |
53 |
Correct |
83 ms |
1728 KB |
Output is correct |
54 |
Correct |
32 ms |
1732 KB |
Output is correct |
55 |
Correct |
75 ms |
1968 KB |
Output is correct |
56 |
Correct |
80 ms |
1740 KB |
Output is correct |
57 |
Correct |
75 ms |
2112 KB |
Output is correct |
58 |
Correct |
14 ms |
1732 KB |
Output is correct |
59 |
Correct |
43 ms |
1860 KB |
Output is correct |
60 |
Correct |
13 ms |
1748 KB |
Output is correct |
61 |
Correct |
42 ms |
2076 KB |
Output is correct |
62 |
Correct |
45 ms |
1748 KB |
Output is correct |
63 |
Correct |
36 ms |
2128 KB |
Output is correct |
64 |
Correct |
4 ms |
1748 KB |
Output is correct |
65 |
Correct |
8 ms |
1748 KB |
Output is correct |
66 |
Correct |
25 ms |
1864 KB |
Output is correct |
67 |
Correct |
29 ms |
1748 KB |
Output is correct |
68 |
Correct |
6 ms |
1620 KB |
Output is correct |
69 |
Correct |
9 ms |
1620 KB |
Output is correct |
70 |
Correct |
73 ms |
1804 KB |
Output is correct |
71 |
Correct |
29 ms |
1740 KB |
Output is correct |
72 |
Correct |
70 ms |
1964 KB |
Output is correct |
73 |
Correct |
66 ms |
1856 KB |
Output is correct |
74 |
Correct |
58 ms |
2100 KB |
Output is correct |
75 |
Correct |
50 ms |
1748 KB |
Output is correct |
76 |
Correct |
6 ms |
1620 KB |
Output is correct |
77 |
Correct |
6 ms |
1732 KB |
Output is correct |
78 |
Correct |
4 ms |
1620 KB |
Output is correct |
79 |
Correct |
13 ms |
1736 KB |
Output is correct |
80 |
Correct |
0 ms |
340 KB |
Output is correct |
81 |
Correct |
127 ms |
1724 KB |
Output is correct |
82 |
Correct |
63 ms |
1712 KB |
Output is correct |
83 |
Correct |
126 ms |
1716 KB |
Output is correct |
84 |
Correct |
135 ms |
1620 KB |
Output is correct |
85 |
Correct |
5 ms |
1732 KB |
Output is correct |
86 |
Correct |
8 ms |
1620 KB |
Output is correct |
87 |
Correct |
48 ms |
1748 KB |
Output is correct |
88 |
Correct |
16 ms |
1748 KB |
Output is correct |
89 |
Correct |
43 ms |
2104 KB |
Output is correct |
90 |
Correct |
48 ms |
1748 KB |
Output is correct |
91 |
Correct |
37 ms |
2212 KB |
Output is correct |
92 |
Correct |
5 ms |
1748 KB |
Output is correct |
93 |
Correct |
8 ms |
1784 KB |
Output is correct |
94 |
Correct |
23 ms |
1876 KB |
Output is correct |
95 |
Correct |
30 ms |
1748 KB |
Output is correct |
96 |
Correct |
74 ms |
1868 KB |
Output is correct |
97 |
Correct |
32 ms |
1740 KB |
Output is correct |
98 |
Correct |
116 ms |
1972 KB |
Output is correct |
99 |
Correct |
86 ms |
1740 KB |
Output is correct |
100 |
Correct |
69 ms |
2108 KB |
Output is correct |
101 |
Correct |
68 ms |
1748 KB |
Output is correct |
102 |
Correct |
30 ms |
1744 KB |
Output is correct |
103 |
Correct |
63 ms |
1876 KB |
Output is correct |
104 |
Correct |
64 ms |
1928 KB |
Output is correct |
105 |
Correct |
67 ms |
2100 KB |
Output is correct |
106 |
Correct |
49 ms |
1748 KB |
Output is correct |
107 |
Correct |
124 ms |
1720 KB |
Output is correct |
108 |
Correct |
124 ms |
1848 KB |
Output is correct |
109 |
Correct |
192 ms |
1972 KB |
Output is correct |
110 |
Correct |
159 ms |
2116 KB |
Output is correct |
111 |
Correct |
13 ms |
1620 KB |
Output is correct |
112 |
Correct |
44 ms |
1848 KB |
Output is correct |
113 |
Correct |
15 ms |
1748 KB |
Output is correct |
114 |
Correct |
40 ms |
2004 KB |
Output is correct |
115 |
Correct |
42 ms |
1748 KB |
Output is correct |
116 |
Correct |
37 ms |
2252 KB |
Output is correct |
117 |
Correct |
6 ms |
1748 KB |
Output is correct |
118 |
Correct |
9 ms |
1732 KB |
Output is correct |
119 |
Correct |
25 ms |
1876 KB |
Output is correct |
120 |
Correct |
32 ms |
1748 KB |
Output is correct |
121 |
Correct |
5 ms |
1620 KB |
Output is correct |
122 |
Correct |
8 ms |
1736 KB |
Output is correct |
123 |
Correct |
72 ms |
1748 KB |
Output is correct |
124 |
Correct |
32 ms |
1736 KB |
Output is correct |
125 |
Correct |
66 ms |
1876 KB |
Output is correct |
126 |
Correct |
66 ms |
1928 KB |
Output is correct |
127 |
Correct |
64 ms |
2104 KB |
Output is correct |
128 |
Correct |
49 ms |
1792 KB |
Output is correct |
129 |
Correct |
4 ms |
1620 KB |
Output is correct |
130 |
Correct |
8 ms |
1740 KB |
Output is correct |
131 |
Correct |
127 ms |
2108 KB |
Output is correct |
132 |
Correct |
56 ms |
1736 KB |
Output is correct |
133 |
Correct |
126 ms |
2120 KB |
Output is correct |
134 |
Correct |
136 ms |
2016 KB |
Output is correct |
135 |
Correct |
110 ms |
2096 KB |
Output is correct |
136 |
Correct |
110 ms |
1876 KB |
Output is correct |
137 |
Correct |
6 ms |
1620 KB |
Output is correct |
138 |
Correct |
5 ms |
1620 KB |
Output is correct |
139 |
Correct |
4 ms |
1620 KB |
Output is correct |
140 |
Correct |
17 ms |
1736 KB |
Output is correct |
141 |
Correct |
0 ms |
212 KB |
Output is correct |
142 |
Correct |
131 ms |
1720 KB |
Output is correct |
143 |
Correct |
64 ms |
1620 KB |
Output is correct |
144 |
Correct |
126 ms |
1724 KB |
Output is correct |
145 |
Correct |
129 ms |
1620 KB |
Output is correct |
146 |
Correct |
5 ms |
1620 KB |
Output is correct |
147 |
Correct |
8 ms |
1732 KB |
Output is correct |
148 |
Correct |
0 ms |
340 KB |
Output is correct |
149 |
Correct |
251 ms |
1724 KB |
Output is correct |
150 |
Correct |
97 ms |
1620 KB |
Output is correct |
151 |
Correct |
241 ms |
1720 KB |
Output is correct |
152 |
Correct |
238 ms |
1728 KB |
Output is correct |
153 |
Correct |
5 ms |
1620 KB |
Output is correct |
154 |
Correct |
9 ms |
1728 KB |
Output is correct |
155 |
Correct |
41 ms |
1848 KB |
Output is correct |
156 |
Correct |
13 ms |
1748 KB |
Output is correct |
157 |
Correct |
40 ms |
2108 KB |
Output is correct |
158 |
Correct |
41 ms |
1784 KB |
Output is correct |
159 |
Correct |
59 ms |
2116 KB |
Output is correct |
160 |
Correct |
5 ms |
1748 KB |
Output is correct |
161 |
Correct |
10 ms |
1748 KB |
Output is correct |
162 |
Correct |
28 ms |
1864 KB |
Output is correct |
163 |
Correct |
30 ms |
1748 KB |
Output is correct |
164 |
Correct |
69 ms |
1748 KB |
Output is correct |
165 |
Correct |
28 ms |
1748 KB |
Output is correct |
166 |
Correct |
64 ms |
1968 KB |
Output is correct |
167 |
Correct |
62 ms |
1928 KB |
Output is correct |
168 |
Correct |
59 ms |
2116 KB |
Output is correct |
169 |
Correct |
49 ms |
1748 KB |
Output is correct |
170 |
Correct |
78 ms |
1840 KB |
Output is correct |
171 |
Correct |
28 ms |
1736 KB |
Output is correct |
172 |
Correct |
73 ms |
2012 KB |
Output is correct |
173 |
Correct |
72 ms |
1728 KB |
Output is correct |
174 |
Correct |
71 ms |
2124 KB |
Output is correct |
175 |
Correct |
122 ms |
1780 KB |
Output is correct |
176 |
Correct |
121 ms |
1868 KB |
Output is correct |
177 |
Correct |
199 ms |
1848 KB |
Output is correct |
178 |
Correct |
114 ms |
2104 KB |
Output is correct |
179 |
Correct |
151 ms |
2108 KB |
Output is correct |
180 |
Correct |
57 ms |
1752 KB |
Output is correct |
181 |
Correct |
123 ms |
2220 KB |
Output is correct |
182 |
Correct |
130 ms |
2000 KB |
Output is correct |
183 |
Correct |
113 ms |
2108 KB |
Output is correct |
184 |
Correct |
117 ms |
1972 KB |
Output is correct |
185 |
Correct |
238 ms |
1888 KB |
Output is correct |
186 |
Correct |
241 ms |
2092 KB |
Output is correct |
187 |
Correct |
356 ms |
2096 KB |
Output is correct |
188 |
Correct |
351 ms |
2080 KB |
Output is correct |
189 |
Correct |
13 ms |
1620 KB |
Output is correct |
190 |
Correct |
41 ms |
1848 KB |
Output is correct |
191 |
Correct |
14 ms |
1740 KB |
Output is correct |
192 |
Correct |
39 ms |
2004 KB |
Output is correct |
193 |
Correct |
43 ms |
1748 KB |
Output is correct |
194 |
Correct |
38 ms |
2132 KB |
Output is correct |
195 |
Correct |
5 ms |
1748 KB |
Output is correct |
196 |
Correct |
8 ms |
1748 KB |
Output is correct |
197 |
Correct |
24 ms |
1876 KB |
Output is correct |
198 |
Correct |
35 ms |
1752 KB |
Output is correct |
199 |
Correct |
5 ms |
1620 KB |
Output is correct |
200 |
Correct |
8 ms |
1732 KB |
Output is correct |
201 |
Correct |
68 ms |
1748 KB |
Output is correct |
202 |
Correct |
28 ms |
1748 KB |
Output is correct |
203 |
Correct |
64 ms |
1876 KB |
Output is correct |
204 |
Correct |
64 ms |
1876 KB |
Output is correct |
205 |
Correct |
62 ms |
2100 KB |
Output is correct |
206 |
Correct |
48 ms |
1788 KB |
Output is correct |
207 |
Correct |
4 ms |
1732 KB |
Output is correct |
208 |
Correct |
8 ms |
1856 KB |
Output is correct |
209 |
Correct |
134 ms |
2108 KB |
Output is correct |
210 |
Correct |
55 ms |
1732 KB |
Output is correct |
211 |
Correct |
194 ms |
2132 KB |
Output is correct |
212 |
Correct |
137 ms |
2028 KB |
Output is correct |
213 |
Correct |
116 ms |
2108 KB |
Output is correct |
214 |
Correct |
123 ms |
1972 KB |
Output is correct |
215 |
Correct |
414 ms |
1876 KB |
Output is correct |
216 |
Correct |
176 ms |
1752 KB |
Output is correct |
217 |
Correct |
404 ms |
1828 KB |
Output is correct |
218 |
Correct |
362 ms |
2124 KB |
Output is correct |
219 |
Correct |
5 ms |
1748 KB |
Output is correct |
220 |
Correct |
11 ms |
1748 KB |
Output is correct |
221 |
Correct |
329 ms |
2004 KB |
Output is correct |
222 |
Correct |
12 ms |
1620 KB |
Output is correct |
223 |
Correct |
48 ms |
1748 KB |
Output is correct |
224 |
Correct |
14 ms |
1748 KB |
Output is correct |
225 |
Correct |
46 ms |
2004 KB |
Output is correct |
226 |
Correct |
47 ms |
1868 KB |
Output is correct |
227 |
Correct |
37 ms |
2132 KB |
Output is correct |
228 |
Correct |
5 ms |
1748 KB |
Output is correct |
229 |
Correct |
9 ms |
1748 KB |
Output is correct |
230 |
Correct |
25 ms |
1876 KB |
Output is correct |
231 |
Correct |
34 ms |
1776 KB |
Output is correct |
232 |
Correct |
4 ms |
1620 KB |
Output is correct |
233 |
Correct |
9 ms |
1736 KB |
Output is correct |
234 |
Correct |
67 ms |
1748 KB |
Output is correct |
235 |
Correct |
31 ms |
1788 KB |
Output is correct |
236 |
Correct |
66 ms |
1972 KB |
Output is correct |
237 |
Correct |
67 ms |
1928 KB |
Output is correct |
238 |
Correct |
59 ms |
2100 KB |
Output is correct |
239 |
Correct |
48 ms |
1748 KB |
Output is correct |
240 |
Correct |
4 ms |
1728 KB |
Output is correct |
241 |
Correct |
8 ms |
1732 KB |
Output is correct |
242 |
Correct |
128 ms |
2108 KB |
Output is correct |
243 |
Correct |
54 ms |
1748 KB |
Output is correct |
244 |
Correct |
129 ms |
2240 KB |
Output is correct |
245 |
Correct |
132 ms |
2024 KB |
Output is correct |
246 |
Correct |
114 ms |
2096 KB |
Output is correct |
247 |
Correct |
110 ms |
1876 KB |
Output is correct |
248 |
Correct |
5 ms |
1732 KB |
Output is correct |
249 |
Correct |
4 ms |
1620 KB |
Output is correct |
250 |
Correct |
3 ms |
1728 KB |
Output is correct |
251 |
Correct |
0 ms |
212 KB |
Output is correct |
252 |
Correct |
125 ms |
1728 KB |
Output is correct |
253 |
Correct |
58 ms |
1712 KB |
Output is correct |
254 |
Correct |
123 ms |
1620 KB |
Output is correct |
255 |
Correct |
142 ms |
1720 KB |
Output is correct |
256 |
Correct |
0 ms |
212 KB |
Output is correct |
257 |
Correct |
255 ms |
1740 KB |
Output is correct |
258 |
Correct |
96 ms |
1620 KB |
Output is correct |
259 |
Correct |
245 ms |
1724 KB |
Output is correct |
260 |
Correct |
240 ms |
1724 KB |
Output is correct |
261 |
Correct |
75 ms |
1856 KB |
Output is correct |
262 |
Correct |
29 ms |
1732 KB |
Output is correct |
263 |
Correct |
76 ms |
2016 KB |
Output is correct |
264 |
Correct |
86 ms |
1724 KB |
Output is correct |
265 |
Correct |
71 ms |
2128 KB |
Output is correct |
266 |
Correct |
130 ms |
1844 KB |
Output is correct |
267 |
Correct |
124 ms |
1860 KB |
Output is correct |
268 |
Correct |
184 ms |
1860 KB |
Output is correct |
269 |
Correct |
119 ms |
2104 KB |
Output is correct |
270 |
Correct |
310 ms |
1852 KB |
Output is correct |
271 |
Correct |
244 ms |
2088 KB |
Output is correct |
272 |
Correct |
243 ms |
2080 KB |
Output is correct |
273 |
Correct |
226 ms |
2096 KB |
Output is correct |
274 |
Correct |
373 ms |
1856 KB |
Output is correct |
275 |
Correct |
196 ms |
1756 KB |
Output is correct |
276 |
Correct |
381 ms |
1748 KB |
Output is correct |
277 |
Correct |
375 ms |
2116 KB |
Output is correct |
278 |
Correct |
5 ms |
1620 KB |
Output is correct |
279 |
Correct |
8 ms |
1736 KB |
Output is correct |
280 |
Correct |
329 ms |
1888 KB |
Output is correct |
281 |
Correct |
726 ms |
1784 KB |
Output is correct |
282 |
Correct |
723 ms |
2400 KB |
Output is correct |
283 |
Correct |
695 ms |
2012 KB |
Output is correct |