# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
73247 |
2018-08-28T05:56:09 Z |
zscoder |
Toys (CEOI18_toy) |
C++17 |
|
971 ms |
40864 KB |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define fi first
#define se second
#define mp make_pair
#define pb push_back
typedef long long ll;
typedef pair<int,int> ii;
typedef vector<int> vi;
typedef long double ld;
typedef tree<ii, null_type, less<ii>, rb_tree_tag, tree_order_statistics_node_update> pbds;
vector<ii> pf;
vector<int> primes;
bool isprime[111111];
void init(int n)
{
for(int i=2;i<=n;i++)
{
isprime[i]=1;
}
for(int i=2;i<=n;i++)
{
if(isprime[i])
{
primes.pb(i);
for(int j=2*i;j<=n;j+=i)
{
isprime[j]=0;
}
}
}
}
int power[32][32];
set<int> dp[32][32][32];
int P[6][111];
set<multiset<int> > partitions[(1<<10)+1];
set<int> ans;
set<int> D[11][32][32][32];
void solve(multiset<int> cur, int a, int b, int c)
{
vector<int> vec;
for(int x:cur) vec.pb(x);
for(int z=0;z<=cur.size();z++)
{
for(int i=0;i<=a;i++)
{
for(int j=0;j<=b;j++)
{
for(int k=0;k<=c;k++)
{
D[z][i][j][k].clear();
}
}
}
}
D[0][a][b][c].insert(0);
for(int z=0;z<vec.size();z++)
{
for(int i=0;i<=a;i++)
{
for(int j=0;j<=b;j++)
{
for(int k=0;k<=c;k++)
{
if(!D[z][i][j][k].empty())
{
for(int l=0;l<=i;l++)
{
for(int m=0;m<=j;m++)
{
for(int x=0;x<=k;x++)
{
for(int s:D[z][i][j][k])
{
D[z+1][i-l][j-m][k-x].insert(s+vec[z]*P[2][l]*P[3][m]*P[5][x]-1);
}
}
}
}
}
}
}
}
}
for(int i=0;i<=a;i++)
{
for(int j=0;j<=b;j++)
{
for(int k=0;k<=c;k++)
{
for(int s:D[int(vec.size())][i][j][k])
{
for(int t:dp[a-i][b-j][c-k])
{
ans.insert(s+t);
}
}
}
}
}
}
int main()
{
ios_base::sync_with_stdio(0); cin.tie(0);
int n; cin>>n;
init(100000);
for(int p:primes)
{
int cnt=0;
while(n%p==0)
{
cnt++; n/=p;
}
if(cnt>0) pf.pb(mp(p,cnt));
}
if(n>1) pf.pb(mp(n,1));
for(int i=1;i<=5;i++)
{
P[i][0]=1;
for(int j=1;j<=32;j++)
{
P[i][j]=P[i][j-1]*i;
}
}
for(int i=0;i<pf.size();i++)
{
power[i][0]=1;
for(int j=1;j<=pf[i].se;j++)
{
power[i][j]=power[i][j-1]*pf[i].fi;
}
}
int a=0; int b=0; int c=0;
for(int i=0;i<pf.size();i++)
{
if(pf[i].fi==2) a+=pf[i].se;
if(pf[i].fi==3) b+=pf[i].se;
if(pf[i].fi==5) c+=pf[i].se;
}
dp[a][b][c].insert(0);
for(int i=a;i>=0;i--) //lazy to optimize lul, try if needed
{
for(int j=b;j>=0;j--)
{
for(int k=c;k>=0;k--)
{
for(int l=0;l<=i;l++)
{
for(int m=0;m<=j;m++)
{
for(int x=0;x<=k;x++)
{
if(l==0&&m==0&&x==0) continue;
int PP = P[2][l]*P[3][m]*P[5][x];
for(int s:dp[i][j][k])
{
dp[i-l][j-m][k-x].insert(PP+s-1);
}
}
}
}
}
}
}
vector<int> big;
for(int i=0;i<pf.size();i++)
{
if(pf[i].fi>=7)
{
for(int j=0;j<pf[i].se;j++) big.pb(pf[i].fi);
}
}
int bigsiz = big.size();
partitions[(1<<bigsiz)-1].insert({{}});
vector<int> prod((1<<bigsiz),1);
for(int i=0;i<(1<<bigsiz);i++)
{
for(int j=0;j<bigsiz;j++)
{
if(i&(1<<j)) prod[i]*=big[j];
}
}
for(int i=(1<<bigsiz)-1;i>=0;i--)
{
for(int j=1;j<=i;j++)
{
if((j&i)==j)
{
for(auto S:partitions[i])
{
multiset<int> S2 = S; S2.insert(prod[j]);
partitions[i^j].insert(S2);
}
}
}
}
//now we got the set of all partitions in partitions[0]
for(auto S:partitions[0])
{
solve(S, a, b, c);
}
cout<<ans.size()<<'\n';
for(int v:ans) cout<<v<<' ';
cout<<'\n';
}
Compilation message
toy.cpp: In function 'void solve(std::multiset<int>, int, int, int)':
toy.cpp:53:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int z=0;z<=cur.size();z++)
~^~~~~~~~~~~~
toy.cpp:67:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int z=0;z<vec.size();z++)
~^~~~~~~~~~~
toy.cpp: In function 'int main()':
toy.cpp:136:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<pf.size();i++)
~^~~~~~~~~~
toy.cpp:145:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<pf.size();i++)
~^~~~~~~~~~
toy.cpp:177:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<pf.size();i++)
~^~~~~~~~~~
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
21 ms |
19064 KB |
Output is correct |
2 |
Correct |
21 ms |
19112 KB |
Output is correct |
3 |
Correct |
20 ms |
19188 KB |
Output is correct |
4 |
Correct |
23 ms |
19188 KB |
Output is correct |
5 |
Correct |
22 ms |
19212 KB |
Output is correct |
6 |
Correct |
19 ms |
19256 KB |
Output is correct |
7 |
Correct |
25 ms |
19256 KB |
Output is correct |
8 |
Correct |
21 ms |
19308 KB |
Output is correct |
9 |
Correct |
22 ms |
19308 KB |
Output is correct |
10 |
Correct |
20 ms |
19308 KB |
Output is correct |
11 |
Correct |
20 ms |
19308 KB |
Output is correct |
12 |
Correct |
21 ms |
19308 KB |
Output is correct |
13 |
Correct |
21 ms |
19312 KB |
Output is correct |
14 |
Correct |
21 ms |
19312 KB |
Output is correct |
15 |
Correct |
21 ms |
19312 KB |
Output is correct |
16 |
Correct |
21 ms |
19312 KB |
Output is correct |
17 |
Correct |
20 ms |
19312 KB |
Output is correct |
18 |
Correct |
23 ms |
19436 KB |
Output is correct |
19 |
Correct |
22 ms |
19436 KB |
Output is correct |
20 |
Correct |
23 ms |
19436 KB |
Output is correct |
21 |
Correct |
21 ms |
19436 KB |
Output is correct |
22 |
Correct |
21 ms |
19436 KB |
Output is correct |
23 |
Correct |
26 ms |
19436 KB |
Output is correct |
24 |
Correct |
22 ms |
19436 KB |
Output is correct |
25 |
Correct |
21 ms |
19436 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
21 ms |
19064 KB |
Output is correct |
2 |
Correct |
21 ms |
19112 KB |
Output is correct |
3 |
Correct |
20 ms |
19188 KB |
Output is correct |
4 |
Correct |
23 ms |
19188 KB |
Output is correct |
5 |
Correct |
22 ms |
19212 KB |
Output is correct |
6 |
Correct |
19 ms |
19256 KB |
Output is correct |
7 |
Correct |
25 ms |
19256 KB |
Output is correct |
8 |
Correct |
21 ms |
19308 KB |
Output is correct |
9 |
Correct |
22 ms |
19308 KB |
Output is correct |
10 |
Correct |
20 ms |
19308 KB |
Output is correct |
11 |
Correct |
20 ms |
19308 KB |
Output is correct |
12 |
Correct |
21 ms |
19308 KB |
Output is correct |
13 |
Correct |
21 ms |
19312 KB |
Output is correct |
14 |
Correct |
21 ms |
19312 KB |
Output is correct |
15 |
Correct |
21 ms |
19312 KB |
Output is correct |
16 |
Correct |
21 ms |
19312 KB |
Output is correct |
17 |
Correct |
20 ms |
19312 KB |
Output is correct |
18 |
Correct |
23 ms |
19436 KB |
Output is correct |
19 |
Correct |
22 ms |
19436 KB |
Output is correct |
20 |
Correct |
23 ms |
19436 KB |
Output is correct |
21 |
Correct |
21 ms |
19436 KB |
Output is correct |
22 |
Correct |
21 ms |
19436 KB |
Output is correct |
23 |
Correct |
26 ms |
19436 KB |
Output is correct |
24 |
Correct |
22 ms |
19436 KB |
Output is correct |
25 |
Correct |
21 ms |
19436 KB |
Output is correct |
26 |
Correct |
20 ms |
19436 KB |
Output is correct |
27 |
Correct |
20 ms |
19436 KB |
Output is correct |
28 |
Correct |
23 ms |
19436 KB |
Output is correct |
29 |
Correct |
23 ms |
19436 KB |
Output is correct |
30 |
Correct |
22 ms |
19436 KB |
Output is correct |
31 |
Correct |
23 ms |
19436 KB |
Output is correct |
32 |
Correct |
23 ms |
19436 KB |
Output is correct |
33 |
Correct |
19 ms |
19436 KB |
Output is correct |
34 |
Correct |
18 ms |
19436 KB |
Output is correct |
35 |
Correct |
19 ms |
19436 KB |
Output is correct |
36 |
Correct |
19 ms |
19436 KB |
Output is correct |
37 |
Correct |
20 ms |
19436 KB |
Output is correct |
38 |
Correct |
19 ms |
19436 KB |
Output is correct |
39 |
Correct |
18 ms |
19436 KB |
Output is correct |
40 |
Correct |
23 ms |
19436 KB |
Output is correct |
41 |
Correct |
24 ms |
19436 KB |
Output is correct |
42 |
Correct |
20 ms |
19436 KB |
Output is correct |
43 |
Correct |
19 ms |
19436 KB |
Output is correct |
44 |
Correct |
21 ms |
19436 KB |
Output is correct |
45 |
Correct |
23 ms |
19436 KB |
Output is correct |
46 |
Correct |
22 ms |
19436 KB |
Output is correct |
47 |
Correct |
24 ms |
19436 KB |
Output is correct |
48 |
Correct |
22 ms |
19436 KB |
Output is correct |
49 |
Correct |
23 ms |
19436 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
21 ms |
19064 KB |
Output is correct |
2 |
Correct |
21 ms |
19112 KB |
Output is correct |
3 |
Correct |
20 ms |
19188 KB |
Output is correct |
4 |
Correct |
23 ms |
19188 KB |
Output is correct |
5 |
Correct |
22 ms |
19212 KB |
Output is correct |
6 |
Correct |
19 ms |
19256 KB |
Output is correct |
7 |
Correct |
25 ms |
19256 KB |
Output is correct |
8 |
Correct |
21 ms |
19308 KB |
Output is correct |
9 |
Correct |
22 ms |
19308 KB |
Output is correct |
10 |
Correct |
20 ms |
19308 KB |
Output is correct |
11 |
Correct |
20 ms |
19308 KB |
Output is correct |
12 |
Correct |
21 ms |
19308 KB |
Output is correct |
13 |
Correct |
21 ms |
19312 KB |
Output is correct |
14 |
Correct |
21 ms |
19312 KB |
Output is correct |
15 |
Correct |
21 ms |
19312 KB |
Output is correct |
16 |
Correct |
21 ms |
19312 KB |
Output is correct |
17 |
Correct |
20 ms |
19312 KB |
Output is correct |
18 |
Correct |
23 ms |
19436 KB |
Output is correct |
19 |
Correct |
22 ms |
19436 KB |
Output is correct |
20 |
Correct |
23 ms |
19436 KB |
Output is correct |
21 |
Correct |
21 ms |
19436 KB |
Output is correct |
22 |
Correct |
21 ms |
19436 KB |
Output is correct |
23 |
Correct |
26 ms |
19436 KB |
Output is correct |
24 |
Correct |
22 ms |
19436 KB |
Output is correct |
25 |
Correct |
21 ms |
19436 KB |
Output is correct |
26 |
Correct |
20 ms |
19436 KB |
Output is correct |
27 |
Correct |
20 ms |
19436 KB |
Output is correct |
28 |
Correct |
23 ms |
19436 KB |
Output is correct |
29 |
Correct |
23 ms |
19436 KB |
Output is correct |
30 |
Correct |
22 ms |
19436 KB |
Output is correct |
31 |
Correct |
23 ms |
19436 KB |
Output is correct |
32 |
Correct |
23 ms |
19436 KB |
Output is correct |
33 |
Correct |
19 ms |
19436 KB |
Output is correct |
34 |
Correct |
18 ms |
19436 KB |
Output is correct |
35 |
Correct |
19 ms |
19436 KB |
Output is correct |
36 |
Correct |
19 ms |
19436 KB |
Output is correct |
37 |
Correct |
20 ms |
19436 KB |
Output is correct |
38 |
Correct |
19 ms |
19436 KB |
Output is correct |
39 |
Correct |
18 ms |
19436 KB |
Output is correct |
40 |
Correct |
23 ms |
19436 KB |
Output is correct |
41 |
Correct |
24 ms |
19436 KB |
Output is correct |
42 |
Correct |
20 ms |
19436 KB |
Output is correct |
43 |
Correct |
19 ms |
19436 KB |
Output is correct |
44 |
Correct |
21 ms |
19436 KB |
Output is correct |
45 |
Correct |
23 ms |
19436 KB |
Output is correct |
46 |
Correct |
22 ms |
19436 KB |
Output is correct |
47 |
Correct |
24 ms |
19436 KB |
Output is correct |
48 |
Correct |
22 ms |
19436 KB |
Output is correct |
49 |
Correct |
23 ms |
19436 KB |
Output is correct |
50 |
Correct |
25 ms |
19436 KB |
Output is correct |
51 |
Correct |
24 ms |
19436 KB |
Output is correct |
52 |
Correct |
21 ms |
19436 KB |
Output is correct |
53 |
Correct |
23 ms |
19436 KB |
Output is correct |
54 |
Correct |
19 ms |
19436 KB |
Output is correct |
55 |
Correct |
21 ms |
19436 KB |
Output is correct |
56 |
Correct |
24 ms |
19436 KB |
Output is correct |
57 |
Correct |
21 ms |
19436 KB |
Output is correct |
58 |
Correct |
21 ms |
19436 KB |
Output is correct |
59 |
Correct |
22 ms |
19436 KB |
Output is correct |
60 |
Correct |
19 ms |
19436 KB |
Output is correct |
61 |
Correct |
22 ms |
19452 KB |
Output is correct |
62 |
Correct |
27 ms |
19452 KB |
Output is correct |
63 |
Correct |
24 ms |
19452 KB |
Output is correct |
64 |
Correct |
20 ms |
19452 KB |
Output is correct |
65 |
Correct |
23 ms |
19452 KB |
Output is correct |
66 |
Correct |
19 ms |
19452 KB |
Output is correct |
67 |
Correct |
20 ms |
19452 KB |
Output is correct |
68 |
Correct |
21 ms |
19452 KB |
Output is correct |
69 |
Correct |
21 ms |
19452 KB |
Output is correct |
70 |
Correct |
20 ms |
19452 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
21 ms |
19064 KB |
Output is correct |
2 |
Correct |
21 ms |
19112 KB |
Output is correct |
3 |
Correct |
20 ms |
19188 KB |
Output is correct |
4 |
Correct |
23 ms |
19188 KB |
Output is correct |
5 |
Correct |
22 ms |
19212 KB |
Output is correct |
6 |
Correct |
19 ms |
19256 KB |
Output is correct |
7 |
Correct |
25 ms |
19256 KB |
Output is correct |
8 |
Correct |
21 ms |
19308 KB |
Output is correct |
9 |
Correct |
22 ms |
19308 KB |
Output is correct |
10 |
Correct |
20 ms |
19308 KB |
Output is correct |
11 |
Correct |
20 ms |
19308 KB |
Output is correct |
12 |
Correct |
21 ms |
19308 KB |
Output is correct |
13 |
Correct |
21 ms |
19312 KB |
Output is correct |
14 |
Correct |
21 ms |
19312 KB |
Output is correct |
15 |
Correct |
21 ms |
19312 KB |
Output is correct |
16 |
Correct |
21 ms |
19312 KB |
Output is correct |
17 |
Correct |
20 ms |
19312 KB |
Output is correct |
18 |
Correct |
23 ms |
19436 KB |
Output is correct |
19 |
Correct |
22 ms |
19436 KB |
Output is correct |
20 |
Correct |
23 ms |
19436 KB |
Output is correct |
21 |
Correct |
21 ms |
19436 KB |
Output is correct |
22 |
Correct |
21 ms |
19436 KB |
Output is correct |
23 |
Correct |
26 ms |
19436 KB |
Output is correct |
24 |
Correct |
22 ms |
19436 KB |
Output is correct |
25 |
Correct |
21 ms |
19436 KB |
Output is correct |
26 |
Correct |
20 ms |
19436 KB |
Output is correct |
27 |
Correct |
20 ms |
19436 KB |
Output is correct |
28 |
Correct |
23 ms |
19436 KB |
Output is correct |
29 |
Correct |
23 ms |
19436 KB |
Output is correct |
30 |
Correct |
22 ms |
19436 KB |
Output is correct |
31 |
Correct |
23 ms |
19436 KB |
Output is correct |
32 |
Correct |
23 ms |
19436 KB |
Output is correct |
33 |
Correct |
19 ms |
19436 KB |
Output is correct |
34 |
Correct |
18 ms |
19436 KB |
Output is correct |
35 |
Correct |
19 ms |
19436 KB |
Output is correct |
36 |
Correct |
19 ms |
19436 KB |
Output is correct |
37 |
Correct |
20 ms |
19436 KB |
Output is correct |
38 |
Correct |
19 ms |
19436 KB |
Output is correct |
39 |
Correct |
18 ms |
19436 KB |
Output is correct |
40 |
Correct |
23 ms |
19436 KB |
Output is correct |
41 |
Correct |
24 ms |
19436 KB |
Output is correct |
42 |
Correct |
20 ms |
19436 KB |
Output is correct |
43 |
Correct |
19 ms |
19436 KB |
Output is correct |
44 |
Correct |
21 ms |
19436 KB |
Output is correct |
45 |
Correct |
23 ms |
19436 KB |
Output is correct |
46 |
Correct |
22 ms |
19436 KB |
Output is correct |
47 |
Correct |
24 ms |
19436 KB |
Output is correct |
48 |
Correct |
22 ms |
19436 KB |
Output is correct |
49 |
Correct |
23 ms |
19436 KB |
Output is correct |
50 |
Correct |
25 ms |
19436 KB |
Output is correct |
51 |
Correct |
24 ms |
19436 KB |
Output is correct |
52 |
Correct |
21 ms |
19436 KB |
Output is correct |
53 |
Correct |
23 ms |
19436 KB |
Output is correct |
54 |
Correct |
19 ms |
19436 KB |
Output is correct |
55 |
Correct |
21 ms |
19436 KB |
Output is correct |
56 |
Correct |
24 ms |
19436 KB |
Output is correct |
57 |
Correct |
21 ms |
19436 KB |
Output is correct |
58 |
Correct |
21 ms |
19436 KB |
Output is correct |
59 |
Correct |
22 ms |
19436 KB |
Output is correct |
60 |
Correct |
19 ms |
19436 KB |
Output is correct |
61 |
Correct |
22 ms |
19452 KB |
Output is correct |
62 |
Correct |
27 ms |
19452 KB |
Output is correct |
63 |
Correct |
24 ms |
19452 KB |
Output is correct |
64 |
Correct |
20 ms |
19452 KB |
Output is correct |
65 |
Correct |
23 ms |
19452 KB |
Output is correct |
66 |
Correct |
19 ms |
19452 KB |
Output is correct |
67 |
Correct |
20 ms |
19452 KB |
Output is correct |
68 |
Correct |
21 ms |
19452 KB |
Output is correct |
69 |
Correct |
21 ms |
19452 KB |
Output is correct |
70 |
Correct |
20 ms |
19452 KB |
Output is correct |
71 |
Correct |
67 ms |
21244 KB |
Output is correct |
72 |
Correct |
63 ms |
21244 KB |
Output is correct |
73 |
Correct |
76 ms |
21260 KB |
Output is correct |
74 |
Correct |
48 ms |
21260 KB |
Output is correct |
75 |
Correct |
41 ms |
21260 KB |
Output is correct |
76 |
Correct |
104 ms |
22188 KB |
Output is correct |
77 |
Correct |
89 ms |
22188 KB |
Output is correct |
78 |
Correct |
76 ms |
22188 KB |
Output is correct |
79 |
Correct |
70 ms |
22188 KB |
Output is correct |
80 |
Correct |
19 ms |
22188 KB |
Output is correct |
81 |
Correct |
25 ms |
22188 KB |
Output is correct |
82 |
Correct |
26 ms |
22188 KB |
Output is correct |
83 |
Correct |
91 ms |
22972 KB |
Output is correct |
84 |
Correct |
145 ms |
23728 KB |
Output is correct |
85 |
Correct |
42 ms |
23728 KB |
Output is correct |
86 |
Correct |
23 ms |
23728 KB |
Output is correct |
87 |
Correct |
174 ms |
24340 KB |
Output is correct |
88 |
Correct |
22 ms |
24340 KB |
Output is correct |
89 |
Correct |
20 ms |
24340 KB |
Output is correct |
90 |
Correct |
20 ms |
24340 KB |
Output is correct |
91 |
Correct |
21 ms |
24340 KB |
Output is correct |
92 |
Correct |
35 ms |
24340 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
21 ms |
19064 KB |
Output is correct |
2 |
Correct |
21 ms |
19112 KB |
Output is correct |
3 |
Correct |
20 ms |
19188 KB |
Output is correct |
4 |
Correct |
23 ms |
19188 KB |
Output is correct |
5 |
Correct |
22 ms |
19212 KB |
Output is correct |
6 |
Correct |
19 ms |
19256 KB |
Output is correct |
7 |
Correct |
25 ms |
19256 KB |
Output is correct |
8 |
Correct |
21 ms |
19308 KB |
Output is correct |
9 |
Correct |
22 ms |
19308 KB |
Output is correct |
10 |
Correct |
20 ms |
19308 KB |
Output is correct |
11 |
Correct |
20 ms |
19308 KB |
Output is correct |
12 |
Correct |
21 ms |
19308 KB |
Output is correct |
13 |
Correct |
21 ms |
19312 KB |
Output is correct |
14 |
Correct |
21 ms |
19312 KB |
Output is correct |
15 |
Correct |
21 ms |
19312 KB |
Output is correct |
16 |
Correct |
21 ms |
19312 KB |
Output is correct |
17 |
Correct |
20 ms |
19312 KB |
Output is correct |
18 |
Correct |
23 ms |
19436 KB |
Output is correct |
19 |
Correct |
22 ms |
19436 KB |
Output is correct |
20 |
Correct |
23 ms |
19436 KB |
Output is correct |
21 |
Correct |
21 ms |
19436 KB |
Output is correct |
22 |
Correct |
21 ms |
19436 KB |
Output is correct |
23 |
Correct |
26 ms |
19436 KB |
Output is correct |
24 |
Correct |
22 ms |
19436 KB |
Output is correct |
25 |
Correct |
21 ms |
19436 KB |
Output is correct |
26 |
Correct |
20 ms |
19436 KB |
Output is correct |
27 |
Correct |
20 ms |
19436 KB |
Output is correct |
28 |
Correct |
23 ms |
19436 KB |
Output is correct |
29 |
Correct |
23 ms |
19436 KB |
Output is correct |
30 |
Correct |
22 ms |
19436 KB |
Output is correct |
31 |
Correct |
23 ms |
19436 KB |
Output is correct |
32 |
Correct |
23 ms |
19436 KB |
Output is correct |
33 |
Correct |
19 ms |
19436 KB |
Output is correct |
34 |
Correct |
18 ms |
19436 KB |
Output is correct |
35 |
Correct |
19 ms |
19436 KB |
Output is correct |
36 |
Correct |
19 ms |
19436 KB |
Output is correct |
37 |
Correct |
20 ms |
19436 KB |
Output is correct |
38 |
Correct |
19 ms |
19436 KB |
Output is correct |
39 |
Correct |
18 ms |
19436 KB |
Output is correct |
40 |
Correct |
23 ms |
19436 KB |
Output is correct |
41 |
Correct |
24 ms |
19436 KB |
Output is correct |
42 |
Correct |
20 ms |
19436 KB |
Output is correct |
43 |
Correct |
19 ms |
19436 KB |
Output is correct |
44 |
Correct |
21 ms |
19436 KB |
Output is correct |
45 |
Correct |
23 ms |
19436 KB |
Output is correct |
46 |
Correct |
22 ms |
19436 KB |
Output is correct |
47 |
Correct |
24 ms |
19436 KB |
Output is correct |
48 |
Correct |
22 ms |
19436 KB |
Output is correct |
49 |
Correct |
23 ms |
19436 KB |
Output is correct |
50 |
Correct |
25 ms |
19436 KB |
Output is correct |
51 |
Correct |
24 ms |
19436 KB |
Output is correct |
52 |
Correct |
21 ms |
19436 KB |
Output is correct |
53 |
Correct |
23 ms |
19436 KB |
Output is correct |
54 |
Correct |
19 ms |
19436 KB |
Output is correct |
55 |
Correct |
21 ms |
19436 KB |
Output is correct |
56 |
Correct |
24 ms |
19436 KB |
Output is correct |
57 |
Correct |
21 ms |
19436 KB |
Output is correct |
58 |
Correct |
21 ms |
19436 KB |
Output is correct |
59 |
Correct |
22 ms |
19436 KB |
Output is correct |
60 |
Correct |
19 ms |
19436 KB |
Output is correct |
61 |
Correct |
22 ms |
19452 KB |
Output is correct |
62 |
Correct |
27 ms |
19452 KB |
Output is correct |
63 |
Correct |
24 ms |
19452 KB |
Output is correct |
64 |
Correct |
20 ms |
19452 KB |
Output is correct |
65 |
Correct |
23 ms |
19452 KB |
Output is correct |
66 |
Correct |
19 ms |
19452 KB |
Output is correct |
67 |
Correct |
20 ms |
19452 KB |
Output is correct |
68 |
Correct |
21 ms |
19452 KB |
Output is correct |
69 |
Correct |
21 ms |
19452 KB |
Output is correct |
70 |
Correct |
20 ms |
19452 KB |
Output is correct |
71 |
Correct |
67 ms |
21244 KB |
Output is correct |
72 |
Correct |
63 ms |
21244 KB |
Output is correct |
73 |
Correct |
76 ms |
21260 KB |
Output is correct |
74 |
Correct |
48 ms |
21260 KB |
Output is correct |
75 |
Correct |
41 ms |
21260 KB |
Output is correct |
76 |
Correct |
104 ms |
22188 KB |
Output is correct |
77 |
Correct |
89 ms |
22188 KB |
Output is correct |
78 |
Correct |
76 ms |
22188 KB |
Output is correct |
79 |
Correct |
70 ms |
22188 KB |
Output is correct |
80 |
Correct |
19 ms |
22188 KB |
Output is correct |
81 |
Correct |
25 ms |
22188 KB |
Output is correct |
82 |
Correct |
26 ms |
22188 KB |
Output is correct |
83 |
Correct |
91 ms |
22972 KB |
Output is correct |
84 |
Correct |
145 ms |
23728 KB |
Output is correct |
85 |
Correct |
42 ms |
23728 KB |
Output is correct |
86 |
Correct |
23 ms |
23728 KB |
Output is correct |
87 |
Correct |
174 ms |
24340 KB |
Output is correct |
88 |
Correct |
22 ms |
24340 KB |
Output is correct |
89 |
Correct |
20 ms |
24340 KB |
Output is correct |
90 |
Correct |
20 ms |
24340 KB |
Output is correct |
91 |
Correct |
21 ms |
24340 KB |
Output is correct |
92 |
Correct |
35 ms |
24340 KB |
Output is correct |
93 |
Correct |
290 ms |
26556 KB |
Output is correct |
94 |
Correct |
209 ms |
26556 KB |
Output is correct |
95 |
Correct |
185 ms |
26556 KB |
Output is correct |
96 |
Correct |
175 ms |
26556 KB |
Output is correct |
97 |
Correct |
156 ms |
26556 KB |
Output is correct |
98 |
Correct |
332 ms |
27196 KB |
Output is correct |
99 |
Correct |
406 ms |
28264 KB |
Output is correct |
100 |
Correct |
298 ms |
28264 KB |
Output is correct |
101 |
Correct |
314 ms |
28264 KB |
Output is correct |
102 |
Correct |
253 ms |
28264 KB |
Output is correct |
103 |
Correct |
196 ms |
28264 KB |
Output is correct |
104 |
Correct |
22 ms |
28264 KB |
Output is correct |
105 |
Correct |
19 ms |
28264 KB |
Output is correct |
106 |
Correct |
27 ms |
28264 KB |
Output is correct |
107 |
Correct |
280 ms |
29376 KB |
Output is correct |
108 |
Correct |
971 ms |
40864 KB |
Output is correct |
109 |
Correct |
78 ms |
40864 KB |
Output is correct |
110 |
Correct |
18 ms |
40864 KB |
Output is correct |
111 |
Correct |
438 ms |
40864 KB |
Output is correct |
112 |
Correct |
18 ms |
40864 KB |
Output is correct |
113 |
Correct |
17 ms |
40864 KB |
Output is correct |
114 |
Correct |
26 ms |
40864 KB |
Output is correct |
115 |
Correct |
21 ms |
40864 KB |
Output is correct |
116 |
Correct |
24 ms |
40864 KB |
Output is correct |
117 |
Correct |
97 ms |
40864 KB |
Output is correct |