QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#341324 | #1428. Grp | rageOfThunder# | AC ✓ | 2879ms | 224852kb | C++14 | 5.7kb | 2024-02-29 17:44:23 | 2024-02-29 17:44:28 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
mt19937 rnd(time(0));
const long long mod=1e9+7;
long long T,S,a,b,c,d[1000001],v[1000001],o,h[1000001],fa[1000001],q,w,e,an,cn,st[1000001],sm[1000001],de[1000001],inf=1e9,vi[1000001],vii[1000001],vv[1000001];
char s[1000001];
struct p{int q,w,e;}l[20000001];
long long pow_(long long qq,long long ww){long long ee=1;while(ww){if(ww&1) ee*=qq,ee%=mod;qq*=qq,qq%=mod,ww>>=1;}return ee%mod;}
inline int read(){int x=0,f=1;char c=getchar();while(c<'0'||c>'9'){if(c=='-')f=-1;c=getchar();}while(c>='0'&&c<='9'){x=(x<<3)+(x<<1)+c-'0';c=getchar();}return x*f;}
void add(long long qq,long long ww)
{
l[++o].q=ww,l[o].w=h[qq],l[o].e=1,h[qq]=o;
swap(qq,ww);
l[++o].q=ww,l[o].w=h[qq],l[o].e=0,h[qq]=o;
}
vector<int> qu[200001],qu1[200001];
map<int,int> id[101];
queue<long long> quu;
bool bfs()
{
memset(de,0,sizeof(de));quu.push(S);de[S]=1;
while(!quu.empty())
{
long long r=quu.front();quu.pop();
for(int i=h[r];i;i=l[i].w) if(l[i].e&&!de[l[i].q]) de[l[i].q]=de[r]+1,quu.push(l[i].q);
}
return de[T];
}
long long dfs(long long qq,long long ww)
{
if(qq==T) return ww;long long gg=0;
for(int i=h[qq];i;i=l[i].w)
{
if(de[l[i].q]==de[qq]+1&&ww&&l[i].e)
{
long long ee=dfs(l[i].q,min(ww,(long long)l[i].e));
l[i].e-=ee,l[i^1].e+=ee,ww-=ee,gg+=ee;
}
}if(!gg) de[qq]=0;
return gg;
}
vector<int> ve[1000001],tmp;
int main()
{
// freopen("1.in","r",stdin);
scanf("%lld%lld",&a,&b);
for(int k=1;k<(1<<a);k++)
{
cn=0;
for(int i=0;i<a;i++)
{
if((1<<i)&k) ++cn;
}
qu[cn].push_back(k);
id[cn][k]=qu[cn].size();
sm[k]=cn;
}
for(int i=0;i<qu[b].size();i++)
{
++an;ve[an].push_back(qu[b][i]);
}
// cout<<an;return 0;
for(int i=1;i<=(b-1)/2;i++)
{
int tt=b-i;
S=qu[tt].size()+qu[i].size()+1,T=S+1;h[S]=h[T]=0;
o=1;for(int j=0;j<qu[tt].size()+qu[i].size();j++) h[j+1]=0;
for(int j=0;j<qu[tt].size();j++) add(S,j+1);
for(int j=0;j<qu[i].size();j++) add(qu[tt].size()+j+1,T);
for(int j=0;j<qu[tt].size();j++)
{
cn=0;
for(int k=0;k<a;k++)
{
if(!((1<<k)&qu[tt][j])) st[++cn]=k;
}
for(int k=0;k<(1<<cn);k++)
{
if(sm[k]==i)
{
long long hh=0;
for(int ii=0;ii<cn;ii++)
{
if(((1<<ii)&k)) hh|=(1<<st[ii+1]);
}
// cout<<id[i][hh]<<" "<<qu[i][id[i][hh]-1]<<"\n";
add(j+1,qu[tt].size()+id[i][hh]);
}
}
}
long long hh=0;
while(bfs()) hh+=dfs(S,inf);
// an+=qu[tt].size()+qu[i].size()-hh;
for(int j=0;j<qu[tt].size();j++)
{
int gg=j+1,fl=0;
for(int k=h[gg];k;k=l[k].w)
{
if(l[k].q==S&&l[k].e==1)
{
fl=1;break;
}
}
if(!fl)
{
++an;
ve[an].push_back(qu[tt][j]);continue;
}
++an;ve[an].push_back(qu[tt][j]);
for(int k=h[gg];k;k=l[k].w)
{
if(l[k].q>qu[tt].size()&&l[k].q!=S&&l[k].e==0)
{
ve[an].push_back(qu[i][l[k].q-qu[tt].size()-1]);
break;
}
}
}
}
if(b%2==0)
{
int tt=b/2,yy=0,ff=qu[tt].size()/2;
for(int i=0;i<qu[tt].size();i++)
{
cn=0;
for(int j=0;j<a;j++) v[j]=0;
for(int j=0;j<a;j++)
{
if(((1<<j)&qu[tt][i]))
{
st[++cn]=j;
v[j]=1;
}
}
long long hh=0;
for(int j=1;j<=cn;j++)
{
int gg=st[j];
while(1)
{
if(!v[gg])
{
hh|=(1<<gg);v[gg]=1;
break;
}++gg;
if(gg==a) gg=0;
}
}
vi[i+1]=id[tt][hh];
}
memset(v,0,sizeof(v));
for(int i=1;i<=qu[tt].size();i++) vii[i]=vi[i];
memset(vi,0,sizeof(vi));
for(int i=1;i<=qu[tt].size();i++)
{
// cout<<i<<" "<<vv[i]<<"\n";
// return 0;
if(vv[i]) continue;
long long tt=i,gg=0;
cn=0;
while(!vv[tt])
{
++gg;st[++cn]=tt;vv[tt]=1;
tt=vii[tt];
}
for(int j=1;j<=cn/2;j++)
{
v[st[j*2-1]]=v[st[j*2]]=1;
vi[st[j*2-1]]=st[j*2];
vi[st[j*2]]=st[j*2-1];++yy;
}
}
cn=0;
for(int i=0;i<qu[tt].size();i++)
{
cn=0;
for(int k=0;k<a;k++)
{
if(!((1<<k)&qu[tt][i])) st[++cn]=k;
}
for(int k=0;k<(1<<cn);k++)
{
if(sm[k]==tt)
{
long long hh=0;
for(int ii=0;ii<cn;ii++)
{
if(((1<<ii)&k)) hh|=(1<<st[ii+1]);
}
qu1[i+1].push_back(id[tt][hh]);
}
}
if(!v[i+1]) tmp.push_back(i+1);
}
// cout<<yy<<" "<<ff<<"\n";
// for(int i=0;i<tmp.size();i++) cout<<tmp[i]<<" ";cout<<"\n";
while(yy<ff)
{
long long ttt=rnd()%tmp.size(),fl=0;
ttt=tmp[ttt];
// cout<<ttt<<" "<<yy<<" "<<ff<<" "<<qu1[ttt].size()<<"\n";
if(qu1[ttt].size()==0) return 0;
random_shuffle(qu1[ttt].begin(),qu1[ttt].end());
for(int i=0;i<qu1[ttt].size();i++)
{
if(!v[qu1[ttt][i]])
{
vi[qu1[ttt][i]]=ttt,vi[ttt]=qu1[ttt][i];
v[qu1[ttt][i]]=v[ttt]=1;++yy;
fl=1;
break;
}
}
if(!fl)
{
int vv=rnd()%qu1[ttt].size(),uu=qu1[ttt][vv];
v[vi[uu]]=0;vi[vi[uu]]=0;
vi[ttt]=uu,vi[uu]=ttt;v[ttt]=1;
}
tmp.clear();
for(int i=1;i<=qu[tt].size();i++) if(!v[i]) tmp.push_back(i);
}
// for(int i=1;i<=qu[tt].size();i++)
// {
// cout<<i<<" "<<vi[i]<<"\n";
// }
// cout<<yy<<" "<<ff<<"\n";
memset(v,0,sizeof(v));
for(int i=1;i<=qu[tt].size();i++)
{
if(v[i]) continue;
++an;
v[i]=1;ve[an].push_back(qu[tt][i-1]);
if(vi[i]) v[vi[i]]=1,ve[an].push_back(qu[tt][vi[i]-1]);
}
// return 0;
}
printf("%lld\n",an);
for(int i=1;i<=an;i++)
{
int tt=ve[i].size();
printf("%d ",tt);
for(int j=0;j<ve[i].size();j++)
{
tt=ve[i][j];
for(int k=0;k<a;k++)
{
if(((1<<k)&tt))
{
putchar(k+'a');
}
}
if(j+1!=ve[i].size()) printf(" ");
}
printf("\n");
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 8ms
memory: 65872kb
input:
3 2
output:
5 1 ab 1 ac 1 bc 2 a b 1 c
result:
ok ok, n = 3, k = 2, groups = 5
Test #2:
score: 0
Accepted
time: 3ms
memory: 56648kb
input:
3 3
output:
4 1 abc 2 ab c 2 ac b 2 bc a
result:
ok ok, n = 3, k = 3, groups = 4
Test #3:
score: 0
Accepted
time: 5ms
memory: 42140kb
input:
1 1
output:
1 1 a
result:
ok ok, n = 1, k = 1, groups = 1
Test #4:
score: 0
Accepted
time: 11ms
memory: 42132kb
input:
2 1
output:
2 1 a 1 b
result:
ok ok, n = 2, k = 1, groups = 2
Test #5:
score: 0
Accepted
time: 8ms
memory: 66872kb
input:
2 2
output:
2 1 ab 2 a b
result:
ok ok, n = 2, k = 2, groups = 2
Test #6:
score: 0
Accepted
time: 0ms
memory: 41112kb
input:
3 1
output:
3 1 a 1 b 1 c
result:
ok ok, n = 3, k = 1, groups = 3
Test #7:
score: 0
Accepted
time: 10ms
memory: 57436kb
input:
4 3
output:
10 1 abc 1 abd 1 acd 1 bcd 1 ab 1 ac 2 bc d 2 ad c 2 bd a 2 cd b
result:
ok ok, n = 4, k = 3, groups = 10
Test #8:
score: 0
Accepted
time: 8ms
memory: 70012kb
input:
4 4
output:
8 1 abcd 2 abc d 2 abd c 2 acd b 2 bcd a 2 ab cd 2 ac bd 2 bc ad
result:
ok ok, n = 4, k = 4, groups = 8
Test #9:
score: 0
Accepted
time: 0ms
memory: 56232kb
input:
5 3
output:
20 1 abc 1 abd 1 acd 1 bcd 1 abe 1 ace 1 bce 1 ade 1 bde 1 cde 1 ab 1 ac 1 bc 1 ad 1 bd 2 cd e 2 ae b 2 be a 2 ce d 2 de c
result:
ok ok, n = 5, k = 3, groups = 20
Test #10:
score: 0
Accepted
time: 10ms
memory: 70120kb
input:
5 4
output:
20 1 abcd 1 abce 1 abde 1 acde 1 bcde 1 abc 1 abd 1 acd 2 bcd e 1 abe 1 ace 2 bce d 2 ade c 2 bde a 2 cde b 2 ab cd 2 ac de 2 bc ae 2 ad be 2 bd ce
result:
ok ok, n = 5, k = 4, groups = 20
Test #11:
score: 0
Accepted
time: 12ms
memory: 72468kb
input:
6 4
output:
43 1 abcd 1 abce 1 abde 1 acde 1 bcde 1 abcf 1 abdf 1 acdf 1 bcdf 1 abef 1 acef 1 bcef 1 adef 1 bdef 1 cdef 1 abc 1 abd 1 acd 1 bcd 1 abe 1 ace 1 bce 1 ade 1 bde 2 cde f 1 abf 1 acf 1 bcf 1 adf 1 bdf 2 cdf e 2 aef b 2 bef a 2 cef d 2 def c 2 ab cd 2 ac bd 2 bc de 2 ad ef 2 ae bf 2 be cf 2 ce df 1 af
result:
ok ok, n = 6, k = 4, groups = 43
Test #12:
score: 0
Accepted
time: 4ms
memory: 56840kb
input:
10 7
output:
792 1 abcdefg 1 abcdefh 1 abcdegh 1 abcdfgh 1 abcefgh 1 abdefgh 1 acdefgh 1 bcdefgh 1 abcdefi 1 abcdegi 1 abcdfgi 1 abcefgi 1 abdefgi 1 acdefgi 1 bcdefgi 1 abcdehi 1 abcdfhi 1 abcefhi 1 abdefhi 1 acdefhi 1 bcdefhi 1 abcdghi 1 abceghi 1 abdeghi 1 acdeghi 1 bcdeghi 1 abcfghi 1 abdfghi 1 acdfghi 1 bcdf...
result:
ok ok, n = 10, k = 7, groups = 792
Test #13:
score: 0
Accepted
time: 31ms
memory: 76676kb
input:
13 10
output:
6364 1 abcdefghij 1 abcdefghik 1 abcdefghjk 1 abcdefgijk 1 abcdefhijk 1 abcdeghijk 1 abcdfghijk 1 abcefghijk 1 abdefghijk 1 acdefghijk 1 bcdefghijk 1 abcdefghil 1 abcdefghjl 1 abcdefgijl 1 abcdefhijl 1 abcdeghijl 1 abcdfghijl 1 abcefghijl 1 abdefghijl 1 acdefghijl 1 bcdefghijl 1 abcdefghkl 1 abcdefg...
result:
ok ok, n = 13, k = 10, groups = 6364
Test #14:
score: 0
Accepted
time: 6ms
memory: 56664kb
input:
9 9
output:
256 1 abcdefghi 2 abcdefgh i 2 abcdefgi h 2 abcdefhi g 2 abcdeghi f 2 abcdfghi e 2 abcefghi d 2 abdefghi c 2 acdefghi b 2 bcdefghi a 2 abcdefg hi 2 abcdefh gi 2 abcdegh fi 2 abcdfgh ei 2 abcefgh di 2 abdefgh ci 2 acdefgh bi 2 bcdefgh ai 2 abcdefi gh 2 abcdegi fh 2 abcdfgi eh 2 abcefgi dh 2 abdefgi c...
result:
ok ok, n = 9, k = 9, groups = 256
Test #15:
score: 0
Accepted
time: 16ms
memory: 70384kb
input:
11 8
output:
1584 1 abcdefgh 1 abcdefgi 1 abcdefhi 1 abcdeghi 1 abcdfghi 1 abcefghi 1 abdefghi 1 acdefghi 1 bcdefghi 1 abcdefgj 1 abcdefhj 1 abcdeghj 1 abcdfghj 1 abcefghj 1 abdefghj 1 acdefghj 1 bcdefghj 1 abcdefij 1 abcdegij 1 abcdfgij 1 abcefgij 1 abdefgij 1 acdefgij 1 bcdefgij 1 abcdehij 1 abcdfhij 1 abcefhi...
result:
ok ok, n = 11, k = 8, groups = 1584
Test #16:
score: 0
Accepted
time: 139ms
memory: 73444kb
input:
15 9
output:
25883 1 abcdefghi 1 abcdefghj 1 abcdefgij 1 abcdefhij 1 abcdeghij 1 abcdfghij 1 abcefghij 1 abdefghij 1 acdefghij 1 bcdefghij 1 abcdefghk 1 abcdefgik 1 abcdefhik 1 abcdeghik 1 abcdfghik 1 abcefghik 1 abdefghik 1 acdefghik 1 bcdefghik 1 abcdefgjk 1 abcdefhjk 1 abcdeghjk 1 abcdfghjk 1 abcefghjk 1 abde...
result:
ok ok, n = 15, k = 9, groups = 25883
Test #17:
score: 0
Accepted
time: 17ms
memory: 71008kb
input:
13 12
output:
4953 1 abcdefghijkl 1 abcdefghijkm 1 abcdefghijlm 1 abcdefghiklm 1 abcdefghjklm 1 abcdefgijklm 1 abcdefhijklm 1 abcdeghijklm 1 abcdfghijklm 1 abcefghijklm 1 abdefghijklm 1 acdefghijklm 1 bcdefghijklm 1 abcdefghijk 1 abcdefghijl 1 abcdefghikl 1 abcdefghjkl 1 abcdefgijkl 1 abcdefhijkl 1 abcdeghijkl 1 ...
result:
ok ok, n = 13, k = 12, groups = 4953
Test #18:
score: 0
Accepted
time: 7ms
memory: 62460kb
input:
6 2
output:
18 1 ab 1 ac 1 bc 1 ad 1 bd 1 cd 1 ae 1 be 1 ce 1 de 1 af 1 bf 1 cf 1 df 1 ef 2 a b 2 c d 2 e f
result:
ok ok, n = 6, k = 2, groups = 18
Test #19:
score: 0
Accepted
time: 3ms
memory: 74172kb
input:
7 4
output:
81 1 abcd 1 abce 1 abde 1 acde 1 bcde 1 abcf 1 abdf 1 acdf 1 bcdf 1 abef 1 acef 1 bcef 1 adef 1 bdef 1 cdef 1 abcg 1 abdg 1 acdg 1 bcdg 1 abeg 1 aceg 1 bceg 1 adeg 1 bdeg 1 cdeg 1 abfg 1 acfg 1 bcfg 1 adfg 1 bdfg 1 cdfg 1 aefg 1 befg 1 cefg 1 defg 1 abc 1 abd 1 acd 1 bcd 1 abe 1 ace 1 bce 1 ade 1 bd...
result:
ok ok, n = 7, k = 4, groups = 81
Test #20:
score: 0
Accepted
time: 3ms
memory: 42268kb
input:
12 1
output:
12 1 a 1 b 1 c 1 d 1 e 1 f 1 g 1 h 1 i 1 j 1 k 1 l
result:
ok ok, n = 12, k = 1, groups = 12
Test #21:
score: 0
Accepted
time: 3ms
memory: 67584kb
input:
7 2
output:
25 1 ab 1 ac 1 bc 1 ad 1 bd 1 cd 1 ae 1 be 1 ce 1 de 1 af 1 bf 1 cf 1 df 1 ef 1 ag 1 bg 1 cg 1 dg 1 eg 1 fg 2 a b 2 c d 2 e f 1 g
result:
ok ok, n = 7, k = 2, groups = 25
Test #22:
score: 0
Accepted
time: 27ms
memory: 59892kb
input:
13 9
output:
6721 1 abcdefghi 1 abcdefghj 1 abcdefgij 1 abcdefhij 1 abcdeghij 1 abcdfghij 1 abcefghij 1 abdefghij 1 acdefghij 1 bcdefghij 1 abcdefghk 1 abcdefgik 1 abcdefhik 1 abcdeghik 1 abcdfghik 1 abcefghik 1 abdefghik 1 acdefghik 1 bcdefghik 1 abcdefgjk 1 abcdefhjk 1 abcdeghjk 1 abcdfghjk 1 abcefghjk 1 abdef...
result:
ok ok, n = 13, k = 9, groups = 6721
Test #23:
score: 0
Accepted
time: 8ms
memory: 67000kb
input:
12 2
output:
72 1 ab 1 ac 1 bc 1 ad 1 bd 1 cd 1 ae 1 be 1 ce 1 de 1 af 1 bf 1 cf 1 df 1 ef 1 ag 1 bg 1 cg 1 dg 1 eg 1 fg 1 ah 1 bh 1 ch 1 dh 1 eh 1 fh 1 gh 1 ai 1 bi 1 ci 1 di 1 ei 1 fi 1 gi 1 hi 1 aj 1 bj 1 cj 1 dj 1 ej 1 fj 1 gj 1 hj 1 ij 1 ak 1 bk 1 ck 1 dk 1 ek 1 fk 1 gk 1 hk 1 ik 1 jk 1 al 1 bl 1 cl 1 dl 1 ...
result:
ok ok, n = 12, k = 2, groups = 72
Test #24:
score: 0
Accepted
time: 1149ms
memory: 141136kb
input:
17 14
output:
99416 1 abcdefghijklmn 1 abcdefghijklmo 1 abcdefghijklno 1 abcdefghijkmno 1 abcdefghijlmno 1 abcdefghiklmno 1 abcdefghjklmno 1 abcdefgijklmno 1 abcdefhijklmno 1 abcdeghijklmno 1 abcdfghijklmno 1 abcefghijklmno 1 abdefghijklmno 1 acdefghijklmno 1 bcdefghijklmno 1 abcdefghijklmp 1 abcdefghijklnp 1 abc...
result:
ok ok, n = 17, k = 14, groups = 99416
Test #25:
score: 0
Accepted
time: 48ms
memory: 66792kb
input:
17 5
output:
9248 1 abcde 1 abcdf 1 abcef 1 abdef 1 acdef 1 bcdef 1 abcdg 1 abceg 1 abdeg 1 acdeg 1 bcdeg 1 abcfg 1 abdfg 1 acdfg 1 bcdfg 1 abefg 1 acefg 1 bcefg 1 adefg 1 bdefg 1 cdefg 1 abcdh 1 abceh 1 abdeh 1 acdeh 1 bcdeh 1 abcfh 1 abdfh 1 acdfh 1 bcdfh 1 abefh 1 acefh 1 bcefh 1 adefh 1 bdefh 1 cdefh 1 abcgh...
result:
ok ok, n = 17, k = 5, groups = 9248
Test #26:
score: 0
Accepted
time: 2879ms
memory: 224852kb
input:
17 12
output:
112268 1 abcdefghijkl 1 abcdefghijkm 1 abcdefghijlm 1 abcdefghiklm 1 abcdefghjklm 1 abcdefgijklm 1 abcdefhijklm 1 abcdeghijklm 1 abcdfghijklm 1 abcefghijklm 1 abdefghijklm 1 acdefghijklm 1 bcdefghijklm 1 abcdefghijkn 1 abcdefghijln 1 abcdefghikln 1 abcdefghjkln 1 abcdefgijkln 1 abcdefhijkln 1 abcdeg...
result:
ok ok, n = 17, k = 12, groups = 112268
Test #27:
score: 0
Accepted
time: 1113ms
memory: 137484kb
input:
17 9
output:
86632 1 abcdefghi 1 abcdefghj 1 abcdefgij 1 abcdefhij 1 abcdeghij 1 abcdfghij 1 abcefghij 1 abdefghij 1 acdefghij 1 bcdefghij 1 abcdefghk 1 abcdefgik 1 abcdefhik 1 abcdeghik 1 abcdfghik 1 abcefghik 1 abdefghik 1 acdefghik 1 bcdefghik 1 abcdefgjk 1 abcdefhjk 1 abcdeghjk 1 abcdfghjk 1 abcefghjk 1 abde...
result:
ok ok, n = 17, k = 9, groups = 86632
Test #28:
score: 0
Accepted
time: 413ms
memory: 90232kb
input:
17 15
output:
89828 1 abcdefghijklmno 1 abcdefghijklmnp 1 abcdefghijklmop 1 abcdefghijklnop 1 abcdefghijkmnop 1 abcdefghijlmnop 1 abcdefghiklmnop 1 abcdefghjklmnop 1 abcdefgijklmnop 1 abcdefhijklmnop 1 abcdeghijklmnop 1 abcdfghijklmnop 1 abcefghijklmnop 1 abdefghijklmnop 1 acdefghijklmnop 1 bcdefghijklmnop 1 abcd...
result:
ok ok, n = 17, k = 15, groups = 89828
Test #29:
score: 0
Accepted
time: 94ms
memory: 87116kb
input:
17 6
output:
21284 1 abcdef 1 abcdeg 1 abcdfg 1 abcefg 1 abdefg 1 acdefg 1 bcdefg 1 abcdeh 1 abcdfh 1 abcefh 1 abdefh 1 acdefh 1 bcdefh 1 abcdgh 1 abcegh 1 abdegh 1 acdegh 1 bcdegh 1 abcfgh 1 abdfgh 1 acdfgh 1 bcdfgh 1 abefgh 1 acefgh 1 bcefgh 1 adefgh 1 bdefgh 1 cdefgh 1 abcdei 1 abcdfi 1 abcefi 1 abdefi 1 acde...
result:
ok ok, n = 17, k = 6, groups = 21284
Test #30:
score: 0
Accepted
time: 24ms
memory: 75236kb
input:
17 2
output:
145 1 ab 1 ac 1 bc 1 ad 1 bd 1 cd 1 ae 1 be 1 ce 1 de 1 af 1 bf 1 cf 1 df 1 ef 1 ag 1 bg 1 cg 1 dg 1 eg 1 fg 1 ah 1 bh 1 ch 1 dh 1 eh 1 fh 1 gh 1 ai 1 bi 1 ci 1 di 1 ei 1 fi 1 gi 1 hi 1 aj 1 bj 1 cj 1 dj 1 ej 1 fj 1 gj 1 hj 1 ij 1 ak 1 bk 1 ck 1 dk 1 ek 1 fk 1 gk 1 hk 1 ik 1 jk 1 al 1 bl 1 cl 1 dl 1...
result:
ok ok, n = 17, k = 2, groups = 145
Test #31:
score: 0
Accepted
time: 483ms
memory: 124412kb
input:
17 8
output:
63512 1 abcdefgh 1 abcdefgi 1 abcdefhi 1 abcdeghi 1 abcdfghi 1 abcefghi 1 abdefghi 1 acdefghi 1 bcdefghi 1 abcdefgj 1 abcdefhj 1 abcdeghj 1 abcdfghj 1 abcefghj 1 abdefghj 1 acdefghj 1 bcdefghj 1 abcdefij 1 abcdegij 1 abcdfgij 1 abcefgij 1 abdefgij 1 acdefgij 1 bcdefgij 1 abcdehij 1 abcdfhij 1 abcefh...
result:
ok ok, n = 17, k = 8, groups = 63512
Test #32:
score: 0
Accepted
time: 2247ms
memory: 164512kb
input:
17 13
output:
108460 1 abcdefghijklm 1 abcdefghijkln 1 abcdefghijkmn 1 abcdefghijlmn 1 abcdefghiklmn 1 abcdefghjklmn 1 abcdefgijklmn 1 abcdefhijklmn 1 abcdeghijklmn 1 abcdfghijklmn 1 abcefghijklmn 1 abdefghijklmn 1 acdefghijklmn 1 bcdefghijklmn 1 abcdefghijklo 1 abcdefghijkmo 1 abcdefghijlmo 1 abcdefghiklmo 1 abc...
result:
ok ok, n = 17, k = 13, groups = 108460
Test #33:
score: 0
Accepted
time: 60ms
memory: 69052kb
input:
17 17
output:
65536 1 abcdefghijklmnopq 2 abcdefghijklmnop q 2 abcdefghijklmnoq p 2 abcdefghijklmnpq o 2 abcdefghijklmopq n 2 abcdefghijklnopq m 2 abcdefghijkmnopq l 2 abcdefghijlmnopq k 2 abcdefghiklmnopq j 2 abcdefghjklmnopq i 2 abcdefgijklmnopq h 2 abcdefhijklmnopq g 2 abcdeghijklmnopq f 2 abcdfghijklmnopq e 2...
result:
ok ok, n = 17, k = 17, groups = 65536
Test #34:
score: 0
Accepted
time: 1815ms
memory: 202816kb
input:
17 10
output:
102986 1 abcdefghij 1 abcdefghik 1 abcdefghjk 1 abcdefgijk 1 abcdefhijk 1 abcdeghijk 1 abcdfghijk 1 abcefghijk 1 abdefghijk 1 acdefghijk 1 bcdefghijk 1 abcdefghil 1 abcdefghjl 1 abcdefgijl 1 abcdefhijl 1 abcdeghijl 1 abcdfghijl 1 abcefghijl 1 abdefghijl 1 acdefghijl 1 bcdefghijl 1 abcdefghkl 1 abcde...
result:
ok ok, n = 17, k = 10, groups = 102986
Test #35:
score: 0
Accepted
time: 197ms
memory: 80640kb
input:
17 7
output:
40392 1 abcdefg 1 abcdefh 1 abcdegh 1 abcdfgh 1 abcefgh 1 abdefgh 1 acdefgh 1 bcdefgh 1 abcdefi 1 abcdegi 1 abcdfgi 1 abcefgi 1 abdefgi 1 acdefgi 1 bcdefgi 1 abcdehi 1 abcdfhi 1 abcefhi 1 abdefhi 1 acdefhi 1 bcdefhi 1 abcdghi 1 abceghi 1 abdeghi 1 acdeghi 1 bcdeghi 1 abcfghi 1 abdfghi 1 acdfghi 1 bc...
result:
ok ok, n = 17, k = 7, groups = 40392
Test #36:
score: 0
Accepted
time: 30ms
memory: 81756kb
input:
17 4
output:
3128 1 abcd 1 abce 1 abde 1 acde 1 bcde 1 abcf 1 abdf 1 acdf 1 bcdf 1 abef 1 acef 1 bcef 1 adef 1 bdef 1 cdef 1 abcg 1 abdg 1 acdg 1 bcdg 1 abeg 1 aceg 1 bceg 1 adeg 1 bdeg 1 cdeg 1 abfg 1 acfg 1 bcfg 1 adfg 1 bdfg 1 cdfg 1 aefg 1 befg 1 cefg 1 defg 1 abch 1 abdh 1 acdh 1 bcdh 1 abeh 1 aceh 1 bceh 1...
result:
ok ok, n = 17, k = 4, groups = 3128
Test #37:
score: 0
Accepted
time: 276ms
memory: 90396kb
input:
17 16
output:
77690 1 abcdefghijklmnop 1 abcdefghijklmnoq 1 abcdefghijklmnpq 1 abcdefghijklmopq 1 abcdefghijklnopq 1 abcdefghijkmnopq 1 abcdefghijlmnopq 1 abcdefghiklmnopq 1 abcdefghjklmnopq 1 abcdefgijklmnopq 1 abcdefhijklmnopq 1 abcdeghijklmnopq 1 abcdfghijklmnopq 1 abcefghijklmnopq 1 abdefghijklmnopq 1 acdefgh...
result:
ok ok, n = 17, k = 16, groups = 77690
Test #38:
score: 0
Accepted
time: 2503ms
memory: 200468kb
input:
17 11
output:
112268 1 abcdefghijk 1 abcdefghijl 1 abcdefghikl 1 abcdefghjkl 1 abcdefgijkl 1 abcdefhijkl 1 abcdeghijkl 1 abcdfghijkl 1 abcefghijkl 1 abdefghijkl 1 acdefghijkl 1 bcdefghijkl 1 abcdefghijm 1 abcdefghikm 1 abcdefghjkm 1 abcdefgijkm 1 abcdefhijkm 1 abcdeghijkm 1 abcdfghijkm 1 abcefghijkm 1 abdefghijkm...
result:
ok ok, n = 17, k = 11, groups = 112268
Test #39:
score: 0
Accepted
time: 19ms
memory: 63288kb
input:
17 3
output:
816 1 abc 1 abd 1 acd 1 bcd 1 abe 1 ace 1 bce 1 ade 1 bde 1 cde 1 abf 1 acf 1 bcf 1 adf 1 bdf 1 cdf 1 aef 1 bef 1 cef 1 def 1 abg 1 acg 1 bcg 1 adg 1 bdg 1 cdg 1 aeg 1 beg 1 ceg 1 deg 1 afg 1 bfg 1 cfg 1 dfg 1 efg 1 abh 1 ach 1 bch 1 adh 1 bdh 1 cdh 1 aeh 1 beh 1 ceh 1 deh 1 afh 1 bfh 1 cfh 1 dfh 1 ...
result:
ok ok, n = 17, k = 3, groups = 816
Test #40:
score: 0
Accepted
time: 27ms
memory: 49936kb
input:
17 1
output:
17 1 a 1 b 1 c 1 d 1 e 1 f 1 g 1 h 1 i 1 j 1 k 1 l 1 m 1 n 1 o 1 p 1 q
result:
ok ok, n = 17, k = 1, groups = 17
Test #41:
score: 0
Accepted
time: 65ms
memory: 64064kb
input:
16 15
output:
39202 1 abcdefghijklmno 1 abcdefghijklmnp 1 abcdefghijklmop 1 abcdefghijklnop 1 abcdefghijkmnop 1 abcdefghijlmnop 1 abcdefghiklmnop 1 abcdefghjklmnop 1 abcdefgijklmnop 1 abcdefhijklmnop 1 abcdeghijklmnop 1 abcdfghijklmnop 1 abcefghijklmnop 1 abdefghijklmnop 1 acdefghijklmnop 1 bcdefghijklmnop 1 abcd...
result:
ok ok, n = 16, k = 15, groups = 39202
Test #42:
score: 0
Accepted
time: 927ms
memory: 109580kb
input:
16 11
output:
56134 1 abcdefghijk 1 abcdefghijl 1 abcdefghikl 1 abcdefghjkl 1 abcdefgijkl 1 abcdefhijkl 1 abcdeghijkl 1 abcdfghijkl 1 abcefghijkl 1 abdefghijkl 1 acdefghijkl 1 bcdefghijkl 1 abcdefghijm 1 abcdefghikm 1 abcdefghjkm 1 abcdefgijkm 1 abcdefhijkm 1 abcdeghijkm 1 abcdfghijkm 1 abcefghijkm 1 abdefghijkm ...
result:
ok ok, n = 16, k = 11, groups = 56134
Test #43:
score: 0
Accepted
time: 16ms
memory: 60296kb
input:
16 5
output:
6748 1 abcde 1 abcdf 1 abcef 1 abdef 1 acdef 1 bcdef 1 abcdg 1 abceg 1 abdeg 1 acdeg 1 bcdeg 1 abcfg 1 abdfg 1 acdfg 1 bcdfg 1 abefg 1 acefg 1 bcefg 1 adefg 1 bdefg 1 cdefg 1 abcdh 1 abceh 1 abdeh 1 acdeh 1 bcdeh 1 abcfh 1 abdfh 1 acdfh 1 bcdfh 1 abefh 1 acefh 1 bcefh 1 adefh 1 bdefh 1 cdefh 1 abcgh...
result:
ok ok, n = 16, k = 5, groups = 6748
Test #44:
score: 0
Accepted
time: 218ms
memory: 99976kb
input:
16 8
output:
37596 1 abcdefgh 1 abcdefgi 1 abcdefhi 1 abcdeghi 1 abcdfghi 1 abcefghi 1 abdefghi 1 acdefghi 1 bcdefghi 1 abcdefgj 1 abcdefhj 1 abcdeghj 1 abcdfghj 1 abcefghj 1 abdefghj 1 acdefghj 1 bcdefghj 1 abcdefij 1 abcdegij 1 abcdfgij 1 abcefgij 1 abdefgij 1 acdefgij 1 bcdefgij 1 abcdehij 1 abcdfhij 1 abcefh...
result:
ok ok, n = 16, k = 8, groups = 37596
Test #45:
score: 0
Accepted
time: 53ms
memory: 82288kb
input:
16 6
output:
14476 1 abcdef 1 abcdeg 1 abcdfg 1 abcefg 1 abdefg 1 acdefg 1 bcdefg 1 abcdeh 1 abcdfh 1 abcefh 1 abdefh 1 acdefh 1 bcdefh 1 abcdgh 1 abcegh 1 abdegh 1 acdegh 1 bcdegh 1 abcfgh 1 abdfgh 1 acdfgh 1 bcdfgh 1 abefgh 1 acefgh 1 bcefgh 1 adefgh 1 bdefgh 1 cdefgh 1 abcdei 1 abcdfi 1 abcefi 1 abdefi 1 acde...
result:
ok ok, n = 16, k = 6, groups = 14476
Test #46:
score: 0
Accepted
time: 11ms
memory: 45260kb
input:
16 1
output:
16 1 a 1 b 1 c 1 d 1 e 1 f 1 g 1 h 1 i 1 j 1 k 1 l 1 m 1 n 1 o 1 p
result:
ok ok, n = 16, k = 1, groups = 16
Test #47:
score: 0
Accepted
time: 468ms
memory: 95348kb
input:
16 9
output:
48126 1 abcdefghi 1 abcdefghj 1 abcdefgij 1 abcdefhij 1 abcdeghij 1 abcdfghij 1 abcefghij 1 abdefghij 1 acdefghij 1 bcdefghij 1 abcdefghk 1 abcdefgik 1 abcdefhik 1 abcdeghik 1 abcdfghik 1 abcefghik 1 abdefghik 1 acdefghik 1 bcdefghik 1 abcdefgjk 1 abcdefhjk 1 abcdeghjk 1 abcdfghjk 1 abcefghjk 1 abde...
result:
ok ok, n = 16, k = 9, groups = 48126
Test #48:
score: 0
Accepted
time: 681ms
memory: 120440kb
input:
16 12
output:
53950 1 abcdefghijkl 1 abcdefghijkm 1 abcdefghijlm 1 abcdefghiklm 1 abcdefghjklm 1 abcdefgijklm 1 abcdefhijklm 1 abcdeghijklm 1 abcdfghijklm 1 abcefghijklm 1 abdefghijklm 1 acdefghijklm 1 bcdefghijklm 1 abcdefghijkn 1 abcdefghijln 1 abcdefghikln 1 abcdefghjkln 1 abcdefgijkln 1 abcdefhijkln 1 abcdegh...
result:
ok ok, n = 16, k = 12, groups = 53950
Test #49:
score: 0
Accepted
time: 674ms
memory: 128720kb
input:
16 10
output:
53950 1 abcdefghij 1 abcdefghik 1 abcdefghjk 1 abcdefgijk 1 abcdefhijk 1 abcdeghijk 1 abcdfghijk 1 abcefghijk 1 abdefghijk 1 acdefghijk 1 bcdefghijk 1 abcdefghil 1 abcdefghjl 1 abcdefgijl 1 abcdefhijl 1 abcdeghijl 1 abcdfghijl 1 abcefghijl 1 abdefghijl 1 acdefghijl 1 bcdefghijl 1 abcdefghkl 1 abcdef...
result:
ok ok, n = 16, k = 10, groups = 53950
Test #50:
score: 0
Accepted
time: 22ms
memory: 77864kb
input:
16 4
output:
2440 1 abcd 1 abce 1 abde 1 acde 1 bcde 1 abcf 1 abdf 1 acdf 1 bcdf 1 abef 1 acef 1 bcef 1 adef 1 bdef 1 cdef 1 abcg 1 abdg 1 acdg 1 bcdg 1 abeg 1 aceg 1 bceg 1 adeg 1 bdeg 1 cdeg 1 abfg 1 acfg 1 bcfg 1 adfg 1 bdfg 1 cdfg 1 aefg 1 befg 1 cefg 1 defg 1 abch 1 abdh 1 acdh 1 bcdh 1 abeh 1 aceh 1 bceh 1...
result:
ok ok, n = 16, k = 4, groups = 2440
Test #51:
score: 0
Accepted
time: 45ms
memory: 77492kb
input:
16 16
output:
32768 1 abcdefghijklmnop 2 abcdefghijklmno p 2 abcdefghijklmnp o 2 abcdefghijklmop n 2 abcdefghijklnop m 2 abcdefghijkmnop l 2 abcdefghijlmnop k 2 abcdefghiklmnop j 2 abcdefghjklmnop i 2 abcdefgijklmnop h 2 abcdefhijklmnop g 2 abcdeghijklmnop f 2 abcdfghijklmnop e 2 abcefghijklmnop d 2 abdefghijklmn...
result:
ok ok, n = 16, k = 16, groups = 32768
Test #52:
score: 0
Accepted
time: 160ms
memory: 91584kb
input:
16 14
output:
44906 1 abcdefghijklmn 1 abcdefghijklmo 1 abcdefghijklno 1 abcdefghijkmno 1 abcdefghijlmno 1 abcdefghiklmno 1 abcdefghjklmno 1 abcdefgijklmno 1 abcdefhijklmno 1 abcdeghijklmno 1 abcdfghijklmno 1 abcefghijklmno 1 abdefghijklmno 1 acdefghijklmno 1 bcdefghijklmno 1 abcdefghijklmp 1 abcdefghijklnp 1 abc...
result:
ok ok, n = 16, k = 14, groups = 44906
Test #53:
score: 0
Accepted
time: 106ms
memory: 70700kb
input:
16 7
output:
25636 1 abcdefg 1 abcdefh 1 abcdegh 1 abcdfgh 1 abcefgh 1 abdefgh 1 acdefgh 1 bcdefgh 1 abcdefi 1 abcdegi 1 abcdfgi 1 abcefgi 1 abdefgi 1 acdefgi 1 bcdefgi 1 abcdehi 1 abcdfhi 1 abcefhi 1 abdefhi 1 acdefhi 1 bcdefhi 1 abcdghi 1 abceghi 1 abdeghi 1 acdeghi 1 bcdeghi 1 abcfghi 1 abdfghi 1 acdfghi 1 bc...
result:
ok ok, n = 16, k = 7, groups = 25636
Test #54:
score: 0
Accepted
time: 11ms
memory: 60552kb
input:
16 3
output:
680 1 abc 1 abd 1 acd 1 bcd 1 abe 1 ace 1 bce 1 ade 1 bde 1 cde 1 abf 1 acf 1 bcf 1 adf 1 bdf 1 cdf 1 aef 1 bef 1 cef 1 def 1 abg 1 acg 1 bcg 1 adg 1 bdg 1 cdg 1 aeg 1 beg 1 ceg 1 deg 1 afg 1 bfg 1 cfg 1 dfg 1 efg 1 abh 1 ach 1 bch 1 adh 1 bdh 1 cdh 1 aeh 1 beh 1 ceh 1 deh 1 afh 1 bfh 1 cfh 1 dfh 1 ...
result:
ok ok, n = 16, k = 3, groups = 680
Test #55:
score: 0
Accepted
time: 11ms
memory: 71308kb
input:
16 2
output:
128 1 ab 1 ac 1 bc 1 ad 1 bd 1 cd 1 ae 1 be 1 ce 1 de 1 af 1 bf 1 cf 1 df 1 ef 1 ag 1 bg 1 cg 1 dg 1 eg 1 fg 1 ah 1 bh 1 ch 1 dh 1 eh 1 fh 1 gh 1 ai 1 bi 1 ci 1 di 1 ei 1 fi 1 gi 1 hi 1 aj 1 bj 1 cj 1 dj 1 ej 1 fj 1 gj 1 hj 1 ij 1 ak 1 bk 1 ck 1 dk 1 ek 1 fk 1 gk 1 hk 1 ik 1 jk 1 al 1 bl 1 cl 1 dl 1...
result:
ok ok, n = 16, k = 2, groups = 128
Test #56:
score: 0
Accepted
time: 420ms
memory: 86316kb
input:
16 13
output:
50506 1 abcdefghijklm 1 abcdefghijkln 1 abcdefghijkmn 1 abcdefghijlmn 1 abcdefghiklmn 1 abcdefghjklmn 1 abcdefgijklmn 1 abcdefhijklmn 1 abcdeghijklmn 1 abcdfghijklmn 1 abcefghijklmn 1 abdefghijklmn 1 acdefghijklmn 1 bcdefghijklmn 1 abcdefghijklo 1 abcdefghijkmo 1 abcdefghijlmo 1 abcdefghiklmo 1 abcd...
result:
ok ok, n = 16, k = 13, groups = 50506
Test #57:
score: 0
Accepted
time: 7ms
memory: 45068kb
input:
15 1
output:
15 1 a 1 b 1 c 1 d 1 e 1 f 1 g 1 h 1 i 1 j 1 k 1 l 1 m 1 n 1 o
result:
ok ok, n = 15, k = 1, groups = 15
Test #58:
score: 0
Accepted
time: 58ms
memory: 77696kb
input:
15 14
output:
19601 1 abcdefghijklmn 1 abcdefghijklmo 1 abcdefghijklno 1 abcdefghijkmno 1 abcdefghijlmno 1 abcdefghiklmno 1 abcdefghjklmno 1 abcdefgijklmno 1 abcdefhijklmno 1 abcdeghijklmno 1 abcdfghijklmno 1 abcefghijklmno 1 abdefghijklmno 1 acdefghijklmno 1 bcdefghijklmno 1 abcdefghijklm 1 abcdefghijkln 1 abcde...
result:
ok ok, n = 15, k = 14, groups = 19601
Test #59:
score: 0
Accepted
time: 26ms
memory: 78416kb
input:
15 6
output:
9601 1 abcdef 1 abcdeg 1 abcdfg 1 abcefg 1 abdefg 1 acdefg 1 bcdefg 1 abcdeh 1 abcdfh 1 abcefh 1 abdefh 1 acdefh 1 bcdefh 1 abcdgh 1 abcegh 1 abdegh 1 acdegh 1 bcdegh 1 abcfgh 1 abdfgh 1 acdfgh 1 bcdfgh 1 abefgh 1 acefgh 1 bcefgh 1 adefgh 1 bdefgh 1 cdefgh 1 abcdei 1 abcdfi 1 abcefi 1 abdefi 1 acdef...
result:
ok ok, n = 15, k = 6, groups = 9601
Test #60:
score: 0
Accepted
time: 8ms
memory: 68540kb
input:
15 2
output:
113 1 ab 1 ac 1 bc 1 ad 1 bd 1 cd 1 ae 1 be 1 ce 1 de 1 af 1 bf 1 cf 1 df 1 ef 1 ag 1 bg 1 cg 1 dg 1 eg 1 fg 1 ah 1 bh 1 ch 1 dh 1 eh 1 fh 1 gh 1 ai 1 bi 1 ci 1 di 1 ei 1 fi 1 gi 1 hi 1 aj 1 bj 1 cj 1 dj 1 ej 1 fj 1 gj 1 hj 1 ij 1 ak 1 bk 1 ck 1 dk 1 ek 1 fk 1 gk 1 hk 1 ik 1 jk 1 al 1 bl 1 cl 1 dl 1...
result:
ok ok, n = 15, k = 2, groups = 113
Test #61:
score: 0
Accepted
time: 91ms
memory: 89064kb
input:
15 8
output:
21561 1 abcdefgh 1 abcdefgi 1 abcdefhi 1 abcdeghi 1 abcdfghi 1 abcefghi 1 abdefghi 1 acdefghi 1 bcdefghi 1 abcdefgj 1 abcdefhj 1 abcdeghj 1 abcdfghj 1 abcefghj 1 abdefghj 1 acdefghj 1 bcdefghj 1 abcdefij 1 abcdegij 1 abcdfgij 1 abcefgij 1 abdefgij 1 acdefgij 1 bcdefgij 1 abcdehij 1 abcdfhij 1 abcefh...
result:
ok ok, n = 15, k = 8, groups = 21561
Test #62:
score: 0
Accepted
time: 12ms
memory: 59528kb
input:
15 5
output:
4823 1 abcde 1 abcdf 1 abcef 1 abdef 1 acdef 1 bcdef 1 abcdg 1 abceg 1 abdeg 1 acdeg 1 bcdeg 1 abcfg 1 abdfg 1 acdfg 1 bcdfg 1 abefg 1 acefg 1 bcefg 1 adefg 1 bdefg 1 cdefg 1 abcdh 1 abceh 1 abdeh 1 acdeh 1 bcdeh 1 abcfh 1 abdfh 1 acdfh 1 bcdfh 1 abefh 1 acefh 1 bcefh 1 adefh 1 bdefh 1 cdefh 1 abcgh...
result:
ok ok, n = 15, k = 5, groups = 4823
Test #63:
score: 0
Accepted
time: 18ms
memory: 58460kb
input:
15 3
output:
560 1 abc 1 abd 1 acd 1 bcd 1 abe 1 ace 1 bce 1 ade 1 bde 1 cde 1 abf 1 acf 1 bcf 1 adf 1 bdf 1 cdf 1 aef 1 bef 1 cef 1 def 1 abg 1 acg 1 bcg 1 adg 1 bdg 1 cdg 1 aeg 1 beg 1 ceg 1 deg 1 afg 1 bfg 1 cfg 1 dfg 1 efg 1 abh 1 ach 1 bch 1 adh 1 bdh 1 cdh 1 aeh 1 beh 1 ceh 1 deh 1 afh 1 bfh 1 cfh 1 dfh 1 ...
result:
ok ok, n = 15, k = 3, groups = 560
Test #64:
score: 0
Accepted
time: 37ms
memory: 63580kb
input:
15 7
output:
15808 1 abcdefg 1 abcdefh 1 abcdegh 1 abcdfgh 1 abcefgh 1 abdefgh 1 acdefgh 1 bcdefgh 1 abcdefi 1 abcdegi 1 abcdfgi 1 abcefgi 1 abdefgi 1 acdefgi 1 bcdefgi 1 abcdehi 1 abcdfhi 1 abcefhi 1 abdefhi 1 acdefhi 1 bcdefhi 1 abcdghi 1 abceghi 1 abdeghi 1 acdeghi 1 bcdeghi 1 abcfghi 1 abdfghi 1 acdfghi 1 bc...
result:
ok ok, n = 15, k = 7, groups = 15808
Test #65:
score: 0
Accepted
time: 198ms
memory: 90324kb
input:
15 10
output:
27385 1 abcdefghij 1 abcdefghik 1 abcdefghjk 1 abcdefgijk 1 abcdefhijk 1 abcdeghijk 1 abcdfghijk 1 abcefghijk 1 abdefghijk 1 acdefghijk 1 bcdefghijk 1 abcdefghil 1 abcdefghjl 1 abcdefgijl 1 abcdefhijl 1 abcdeghijl 1 abcdfghijl 1 abcefghijl 1 abdefghijl 1 acdefghijl 1 bcdefghijl 1 abcdefghkl 1 abcdef...
result:
ok ok, n = 15, k = 10, groups = 27385
Test #66:
score: 0
Accepted
time: 203ms
memory: 74688kb
input:
15 11
output:
27248 1 abcdefghijk 1 abcdefghijl 1 abcdefghikl 1 abcdefghjkl 1 abcdefgijkl 1 abcdefhijkl 1 abcdeghijkl 1 abcdfghijkl 1 abcefghijkl 1 abdefghijkl 1 acdefghijkl 1 bcdefghijkl 1 abcdefghijm 1 abcdefghikm 1 abcdefghjkm 1 abcdefgijkm 1 abcdefhijkm 1 abcdeghijkm 1 abcdfghijkm 1 abcefghijkm 1 abdefghijkm ...
result:
ok ok, n = 15, k = 11, groups = 27248
Test #67:
score: 0
Accepted
time: 7ms
memory: 77136kb
input:
15 4
output:
1873 1 abcd 1 abce 1 abde 1 acde 1 bcde 1 abcf 1 abdf 1 acdf 1 bcdf 1 abef 1 acef 1 bcef 1 adef 1 bdef 1 cdef 1 abcg 1 abdg 1 acdg 1 bcdg 1 abeg 1 aceg 1 bceg 1 adeg 1 bdeg 1 cdeg 1 abfg 1 acfg 1 bcfg 1 adfg 1 bdfg 1 cdfg 1 aefg 1 befg 1 cefg 1 defg 1 abch 1 abdh 1 acdh 1 bcdh 1 abeh 1 aceh 1 bceh 1...
result:
ok ok, n = 15, k = 4, groups = 1873
Test #68:
score: 0
Accepted
time: 69ms
memory: 63448kb
input:
15 13
output:
22803 1 abcdefghijklm 1 abcdefghijkln 1 abcdefghijkmn 1 abcdefghijlmn 1 abcdefghiklmn 1 abcdefghjklmn 1 abcdefgijklmn 1 abcdefhijklmn 1 abcdeghijklmn 1 abcdfghijklmn 1 abcefghijklmn 1 abdefghijklmn 1 acdefghijklmn 1 bcdefghijklmn 1 abcdefghijklo 1 abcdefghijkmo 1 abcdefghijlmo 1 abcdefghiklmo 1 abcd...
result:
ok ok, n = 15, k = 13, groups = 22803
Test #69:
score: 0
Accepted
time: 140ms
memory: 90272kb
input:
15 12
output:
25201 1 abcdefghijkl 1 abcdefghijkm 1 abcdefghijlm 1 abcdefghiklm 1 abcdefghjklm 1 abcdefgijklm 1 abcdefhijklm 1 abcdeghijklm 1 abcdfghijklm 1 abcefghijklm 1 abdefghijklm 1 acdefghijklm 1 bcdefghijklm 1 abcdefghijkn 1 abcdefghijln 1 abcdefghikln 1 abcdefghjkln 1 abcdefgijkln 1 abcdefhijkln 1 abcdegh...
result:
ok ok, n = 15, k = 12, groups = 25201
Test #70:
score: 0
Accepted
time: 21ms
memory: 59004kb
input:
15 15
output:
16384 1 abcdefghijklmno 2 abcdefghijklmn o 2 abcdefghijklmo n 2 abcdefghijklno m 2 abcdefghijkmno l 2 abcdefghijlmno k 2 abcdefghiklmno j 2 abcdefghjklmno i 2 abcdefgijklmno h 2 abcdefhijklmno g 2 abcdeghijklmno f 2 abcdfghijklmno e 2 abcefghijklmno d 2 abdefghijklmno c 2 acdefghijklmno b 2 bcdefghi...
result:
ok ok, n = 15, k = 15, groups = 16384
Test #71:
score: 0
Accepted
time: 11ms
memory: 57356kb
input:
14 3
output:
455 1 abc 1 abd 1 acd 1 bcd 1 abe 1 ace 1 bce 1 ade 1 bde 1 cde 1 abf 1 acf 1 bcf 1 adf 1 bdf 1 cdf 1 aef 1 bef 1 cef 1 def 1 abg 1 acg 1 bcg 1 adg 1 bdg 1 cdg 1 aeg 1 beg 1 ceg 1 deg 1 afg 1 bfg 1 cfg 1 dfg 1 efg 1 abh 1 ach 1 bch 1 adh 1 bdh 1 cdh 1 aeh 1 beh 1 ceh 1 deh 1 afh 1 bfh 1 cfh 1 dfh 1 ...
result:
ok ok, n = 14, k = 3, groups = 455
Test #72:
score: 0
Accepted
time: 67ms
memory: 78860kb
input:
14 10
output:
13442 1 abcdefghij 1 abcdefghik 1 abcdefghjk 1 abcdefgijk 1 abcdefhijk 1 abcdeghijk 1 abcdfghijk 1 abcefghijk 1 abdefghijk 1 acdefghijk 1 bcdefghijk 1 abcdefghil 1 abcdefghjl 1 abcdefgijl 1 abcdefhijl 1 abcdeghijl 1 abcdfghijl 1 abcefghijl 1 abdefghijl 1 acdefghijl 1 bcdefghijl 1 abcdefghkl 1 abcdef...
result:
ok ok, n = 14, k = 10, groups = 13442
Test #73:
score: 0
Accepted
time: 66ms
memory: 62736kb
input:
14 9
output:
13442 1 abcdefghi 1 abcdefghj 1 abcdefgij 1 abcdefhij 1 abcdeghij 1 abcdfghij 1 abcefghij 1 abdefghij 1 acdefghij 1 bcdefghij 1 abcdefghk 1 abcdefgik 1 abcdefhik 1 abcdeghik 1 abcdfghik 1 abcefghik 1 abdefghik 1 acdefghik 1 bcdefghik 1 abcdefgjk 1 abcdefhjk 1 abcdeghjk 1 abcdfghjk 1 abcefghjk 1 abde...
result:
ok ok, n = 14, k = 9, groups = 13442
Test #74:
score: 0
Accepted
time: 11ms
memory: 76632kb
input:
14 4
output:
1411 1 abcd 1 abce 1 abde 1 acde 1 bcde 1 abcf 1 abdf 1 acdf 1 bcdf 1 abef 1 acef 1 bcef 1 adef 1 bdef 1 cdef 1 abcg 1 abdg 1 acdg 1 bcdg 1 abeg 1 aceg 1 bceg 1 adeg 1 bdeg 1 cdeg 1 abfg 1 acfg 1 bcfg 1 adfg 1 bdfg 1 cdfg 1 aefg 1 befg 1 cefg 1 defg 1 abch 1 abdh 1 acdh 1 bcdh 1 abeh 1 aceh 1 bceh 1...
result:
ok ok, n = 14, k = 4, groups = 1411
Test #75:
score: 0
Accepted
time: 29ms
memory: 59340kb
input:
14 7
output:
9438 1 abcdefg 1 abcdefh 1 abcdegh 1 abcdfgh 1 abcefgh 1 abdefgh 1 acdefgh 1 bcdefgh 1 abcdefi 1 abcdegi 1 abcdfgi 1 abcefgi 1 abdefgi 1 acdefgi 1 bcdefgi 1 abcdehi 1 abcdfhi 1 abcefhi 1 abdefhi 1 acdefhi 1 bcdefhi 1 abcdghi 1 abceghi 1 abdeghi 1 acdeghi 1 bcdeghi 1 abcfghi 1 abdfghi 1 acdfghi 1 bcd...
result:
ok ok, n = 14, k = 7, groups = 9438
Test #76:
score: 0
Accepted
time: 58ms
memory: 62272kb
input:
14 11
output:
12805 1 abcdefghijk 1 abcdefghijl 1 abcdefghikl 1 abcdefghjkl 1 abcdefgijkl 1 abcdefhijkl 1 abcdeghijkl 1 abcdfghijkl 1 abcefghijkl 1 abdefghijkl 1 acdefghijkl 1 bcdefghijkl 1 abcdefghijm 1 abcdefghikm 1 abcdefghjkm 1 abcdefgijkm 1 abcdefhijkm 1 abcdeghijkm 1 abcdfghijkm 1 abcefghijkm 1 abdefghijkm ...
result:
ok ok, n = 14, k = 11, groups = 12805
Test #77:
score: 0
Accepted
time: 16ms
memory: 76888kb
input:
14 14
output:
8192 1 abcdefghijklmn 2 abcdefghijklm n 2 abcdefghijkln m 2 abcdefghijkmn l 2 abcdefghijlmn k 2 abcdefghiklmn j 2 abcdefghjklmn i 2 abcdefgijklmn h 2 abcdefhijklmn g 2 abcdeghijklmn f 2 abcdfghijklmn e 2 abcefghijklmn d 2 abdefghijklmn c 2 acdefghijklmn b 2 bcdefghijklmn a 2 abcdefghijkl mn 2 abcdef...
result:
ok ok, n = 14, k = 14, groups = 8192
Test #78:
score: 0
Accepted
time: 17ms
memory: 76960kb
input:
14 6
output:
6188 1 abcdef 1 abcdeg 1 abcdfg 1 abcefg 1 abdefg 1 acdefg 1 bcdefg 1 abcdeh 1 abcdfh 1 abcefh 1 abdefh 1 acdefh 1 bcdefh 1 abcdgh 1 abcegh 1 abdegh 1 acdegh 1 bcdegh 1 abcfgh 1 abdfgh 1 acdfgh 1 bcdfgh 1 abefgh 1 acefgh 1 bcefgh 1 adefgh 1 bdefgh 1 cdefgh 1 abcdei 1 abcdfi 1 abcefi 1 abdefi 1 acdef...
result:
ok ok, n = 14, k = 6, groups = 6188
Test #79:
score: 0
Accepted
time: 12ms
memory: 57748kb
input:
14 5
output:
3367 1 abcde 1 abcdf 1 abcef 1 abdef 1 acdef 1 bcdef 1 abcdg 1 abceg 1 abdeg 1 acdeg 1 bcdeg 1 abcfg 1 abdfg 1 acdfg 1 bcdfg 1 abefg 1 acefg 1 bcefg 1 adefg 1 bdefg 1 cdefg 1 abcdh 1 abceh 1 abdeh 1 acdeh 1 bcdeh 1 abcfh 1 abdfh 1 acdfh 1 bcdfh 1 abefh 1 acefh 1 bcefh 1 adefh 1 bdefh 1 cdefh 1 abcgh...
result:
ok ok, n = 14, k = 5, groups = 3367
Test #80:
score: 0
Accepted
time: 18ms
memory: 57428kb
input:
14 13
output:
9907 1 abcdefghijklm 1 abcdefghijkln 1 abcdefghijkmn 1 abcdefghijlmn 1 abcdefghiklmn 1 abcdefghjklmn 1 abcdefgijklmn 1 abcdefhijklmn 1 abcdeghijklmn 1 abcdfghijklmn 1 abcefghijklmn 1 abdefghijklmn 1 acdefghijklmn 1 bcdefghijklmn 1 abcdefghijkl 1 abcdefghijkm 1 abcdefghijlm 1 abcdefghiklm 1 abcdefghj...
result:
ok ok, n = 14, k = 13, groups = 9907
Test #81:
score: 0
Accepted
time: 8ms
memory: 42428kb
input:
14 1
output:
14 1 a 1 b 1 c 1 d 1 e 1 f 1 g 1 h 1 i 1 j 1 k 1 l 1 m 1 n
result:
ok ok, n = 14, k = 1, groups = 14
Test #82:
score: 0
Accepted
time: 35ms
memory: 74068kb
input:
14 12
output:
11395 1 abcdefghijkl 1 abcdefghijkm 1 abcdefghijlm 1 abcdefghiklm 1 abcdefghjklm 1 abcdefgijklm 1 abcdefhijklm 1 abcdeghijklm 1 abcdfghijklm 1 abcefghijklm 1 abdefghijklm 1 acdefghijklm 1 bcdefghijklm 1 abcdefghijkn 1 abcdefghijln 1 abcdefghikln 1 abcdefghjkln 1 abcdefgijkln 1 abcdefhijkln 1 abcdegh...
result:
ok ok, n = 14, k = 12, groups = 11395
Test #83:
score: 0
Accepted
time: 8ms
memory: 63264kb
input:
14 2
output:
98 1 ab 1 ac 1 bc 1 ad 1 bd 1 cd 1 ae 1 be 1 ce 1 de 1 af 1 bf 1 cf 1 df 1 ef 1 ag 1 bg 1 cg 1 dg 1 eg 1 fg 1 ah 1 bh 1 ch 1 dh 1 eh 1 fh 1 gh 1 ai 1 bi 1 ci 1 di 1 ei 1 fi 1 gi 1 hi 1 aj 1 bj 1 cj 1 dj 1 ej 1 fj 1 gj 1 hj 1 ij 1 ak 1 bk 1 ck 1 dk 1 ek 1 fk 1 gk 1 hk 1 ik 1 jk 1 al 1 bl 1 cl 1 dl 1 ...
result:
ok ok, n = 14, k = 2, groups = 98
Test #84:
score: 0
Accepted
time: 44ms
memory: 80060kb
input:
14 8
output:
11941 1 abcdefgh 1 abcdefgi 1 abcdefhi 1 abcdeghi 1 abcdfghi 1 abcefghi 1 abdefghi 1 acdefghi 1 bcdefghi 1 abcdefgj 1 abcdefhj 1 abcdeghj 1 abcdfghj 1 abcefghj 1 abdefghj 1 acdefghj 1 bcdefghj 1 abcdefij 1 abcdegij 1 abcdfgij 1 abcefgij 1 abdefgij 1 acdefgij 1 bcdefgij 1 abcdehij 1 abcdfhij 1 abcefh...
result:
ok ok, n = 14, k = 8, groups = 11941
Test #85:
score: 0
Accepted
time: 12ms
memory: 58104kb
input:
13 7
output:
5434 1 abcdefg 1 abcdefh 1 abcdegh 1 abcdfgh 1 abcefgh 1 abdefgh 1 acdefgh 1 bcdefgh 1 abcdefi 1 abcdegi 1 abcdfgi 1 abcefgi 1 abdefgi 1 acdefgi 1 bcdefgi 1 abcdehi 1 abcdfhi 1 abcefhi 1 abdefhi 1 acdefhi 1 bcdefhi 1 abcdghi 1 abceghi 1 abdeghi 1 acdeghi 1 bcdeghi 1 abcfghi 1 abdfghi 1 acdfghi 1 bcd...
result:
ok ok, n = 13, k = 7, groups = 5434
Test #86:
score: 0
Accepted
time: 20ms
memory: 75032kb
input:
13 8
output:
6364 1 abcdefgh 1 abcdefgi 1 abcdefhi 1 abcdeghi 1 abcdfghi 1 abcefghi 1 abdefghi 1 acdefghi 1 bcdefghi 1 abcdefgj 1 abcdefhj 1 abcdeghj 1 abcdfghj 1 abcefghj 1 abdefghj 1 acdefghj 1 bcdefghj 1 abcdefij 1 abcdegij 1 abcdfgij 1 abcefgij 1 abdefgij 1 acdefgij 1 bcdefgij 1 abcdehij 1 abcdfhij 1 abcefhi...
result:
ok ok, n = 13, k = 8, groups = 6364
Test #87:
score: 0
Accepted
time: 8ms
memory: 57168kb
input:
13 13
output:
4096 1 abcdefghijklm 2 abcdefghijkl m 2 abcdefghijkm l 2 abcdefghijlm k 2 abcdefghiklm j 2 abcdefghjklm i 2 abcdefgijklm h 2 abcdefhijklm g 2 abcdeghijklm f 2 abcdfghijklm e 2 abcefghijklm d 2 abdefghijklm c 2 acdefghijklm b 2 bcdefghijklm a 2 abcdefghijk lm 2 abcdefghijl km 2 abcdefghikl jm 2 abcde...
result:
ok ok, n = 13, k = 13, groups = 4096
Test #88:
score: 0
Accepted
time: 12ms
memory: 74392kb
input:
13 4
output:
1040 1 abcd 1 abce 1 abde 1 acde 1 bcde 1 abcf 1 abdf 1 acdf 1 bcdf 1 abef 1 acef 1 bcef 1 adef 1 bdef 1 cdef 1 abcg 1 abdg 1 acdg 1 bcdg 1 abeg 1 aceg 1 bceg 1 adeg 1 bdeg 1 cdeg 1 abfg 1 acfg 1 bcfg 1 adfg 1 bdfg 1 cdfg 1 aefg 1 befg 1 cefg 1 defg 1 abch 1 abdh 1 acdh 1 bcdh 1 abeh 1 aceh 1 bceh 1...
result:
ok ok, n = 13, k = 4, groups = 1040
Test #89:
score: 0
Accepted
time: 8ms
memory: 43152kb
input:
13 1
output:
13 1 a 1 b 1 c 1 d 1 e 1 f 1 g 1 h 1 i 1 j 1 k 1 l 1 m
result:
ok ok, n = 13, k = 1, groups = 13
Test #90:
score: 0
Accepted
time: 8ms
memory: 57116kb
input:
13 5
output:
2288 1 abcde 1 abcdf 1 abcef 1 abdef 1 acdef 1 bcdef 1 abcdg 1 abceg 1 abdeg 1 acdeg 1 bcdeg 1 abcfg 1 abdfg 1 acdfg 1 bcdfg 1 abefg 1 acefg 1 bcefg 1 adefg 1 bdefg 1 cdefg 1 abcdh 1 abceh 1 abdeh 1 acdeh 1 bcdeh 1 abcfh 1 abdfh 1 acdfh 1 bcdfh 1 abefh 1 acefh 1 bcefh 1 adefh 1 bdefh 1 cdefh 1 abcgh...
result:
ok ok, n = 13, k = 5, groups = 2288
Test #91:
score: 0
Accepted
time: 3ms
memory: 57340kb
input:
13 3
output:
364 1 abc 1 abd 1 acd 1 bcd 1 abe 1 ace 1 bce 1 ade 1 bde 1 cde 1 abf 1 acf 1 bcf 1 adf 1 bdf 1 cdf 1 aef 1 bef 1 cef 1 def 1 abg 1 acg 1 bcg 1 adg 1 bdg 1 cdg 1 aeg 1 beg 1 ceg 1 deg 1 afg 1 bfg 1 cfg 1 dfg 1 efg 1 abh 1 ach 1 bch 1 adh 1 bdh 1 cdh 1 aeh 1 beh 1 ceh 1 deh 1 afh 1 bfh 1 cfh 1 dfh 1 ...
result:
ok ok, n = 13, k = 3, groups = 364
Test #92:
score: 0
Accepted
time: 16ms
memory: 72768kb
input:
13 6
output:
3861 1 abcdef 1 abcdeg 1 abcdfg 1 abcefg 1 abdefg 1 acdefg 1 bcdefg 1 abcdeh 1 abcdfh 1 abcefh 1 abdefh 1 acdefh 1 bcdefh 1 abcdgh 1 abcegh 1 abdegh 1 acdegh 1 bcdegh 1 abcfgh 1 abdfgh 1 acdfgh 1 bcdfgh 1 abefgh 1 acefgh 1 bcefgh 1 adefgh 1 bdefgh 1 cdefgh 1 abcdei 1 abcdfi 1 abcefi 1 abdefi 1 acdef...
result:
ok ok, n = 13, k = 6, groups = 3861
Test #93:
score: 0
Accepted
time: 7ms
memory: 67312kb
input:
13 2
output:
85 1 ab 1 ac 1 bc 1 ad 1 bd 1 cd 1 ae 1 be 1 ce 1 de 1 af 1 bf 1 cf 1 df 1 ef 1 ag 1 bg 1 cg 1 dg 1 eg 1 fg 1 ah 1 bh 1 ch 1 dh 1 eh 1 fh 1 gh 1 ai 1 bi 1 ci 1 di 1 ei 1 fi 1 gi 1 hi 1 aj 1 bj 1 cj 1 dj 1 ej 1 fj 1 gj 1 hj 1 ij 1 ak 1 bk 1 ck 1 dk 1 ek 1 fk 1 gk 1 hk 1 ik 1 jk 1 al 1 bl 1 cl 1 dl 1 ...
result:
ok ok, n = 13, k = 2, groups = 85
Test #94:
score: 0
Accepted
time: 19ms
memory: 56372kb
input:
13 11
output:
5798 1 abcdefghijk 1 abcdefghijl 1 abcdefghikl 1 abcdefghjkl 1 abcdefgijkl 1 abcdefhijkl 1 abcdeghijkl 1 abcdfghijkl 1 abcefghijkl 1 abdefghijkl 1 acdefghijkl 1 bcdefghijkl 1 abcdefghijm 1 abcdefghikm 1 abcdefghjkm 1 abcdefgijkm 1 abcdefhijkm 1 abcdeghijkm 1 abcdfghijkm 1 abcefghijkm 1 abdefghijkm 1...
result:
ok ok, n = 13, k = 11, groups = 5798
Test #95:
score: 0
Accepted
time: 13ms
memory: 75828kb
input:
12 10
output:
2893 1 abcdefghij 1 abcdefghik 1 abcdefghjk 1 abcdefgijk 1 abcdefhijk 1 abcdeghijk 1 abcdfghijk 1 abcefghijk 1 abdefghijk 1 acdefghijk 1 bcdefghijk 1 abcdefghil 1 abcdefghjl 1 abcdefgijl 1 abcdefhijl 1 abcdeghijl 1 abcdfghijl 1 abcefghijl 1 abdefghijl 1 acdefghijl 1 bcdefghijl 1 abcdefghkl 1 abcdefg...
result:
ok ok, n = 12, k = 10, groups = 2893
Test #96:
score: 0
Accepted
time: 7ms
memory: 57456kb
input:
12 11
output:
2509 1 abcdefghijk 1 abcdefghijl 1 abcdefghikl 1 abcdefghjkl 1 abcdefgijkl 1 abcdefhijkl 1 abcdeghijkl 1 abcdfghijkl 1 abcefghijkl 1 abdefghijkl 1 acdefghijkl 1 bcdefghijkl 1 abcdefghij 1 abcdefghik 1 abcdefghjk 1 abcdefgijk 1 abcdefhijk 1 abcdeghijk 1 abcdfghijk 1 abcefghijk 1 abdefghijk 1 acdefghi...
result:
ok ok, n = 12, k = 11, groups = 2509
Test #97:
score: 0
Accepted
time: 8ms
memory: 70440kb
input:
12 6
output:
2321 1 abcdef 1 abcdeg 1 abcdfg 1 abcefg 1 abdefg 1 acdefg 1 bcdefg 1 abcdeh 1 abcdfh 1 abcefh 1 abdefh 1 acdefh 1 bcdefh 1 abcdgh 1 abcegh 1 abdegh 1 acdegh 1 bcdegh 1 abcfgh 1 abdfgh 1 acdfgh 1 bcdfgh 1 abefgh 1 acefgh 1 bcefgh 1 adefgh 1 bdefgh 1 cdefgh 1 abcdei 1 abcdfi 1 abcefi 1 abdefi 1 acdef...
result:
ok ok, n = 12, k = 6, groups = 2321
Test #98:
score: 0
Accepted
time: 7ms
memory: 56144kb
input:
12 7
output:
3003 1 abcdefg 1 abcdefh 1 abcdegh 1 abcdfgh 1 abcefgh 1 abdefgh 1 acdefgh 1 bcdefgh 1 abcdefi 1 abcdegi 1 abcdfgi 1 abcefgi 1 abdefgi 1 acdefgi 1 bcdefgi 1 abcdehi 1 abcdfhi 1 abcefhi 1 abdefhi 1 acdefhi 1 bcdefhi 1 abcdghi 1 abceghi 1 abdeghi 1 acdeghi 1 bcdeghi 1 abcfghi 1 abdfghi 1 acdfghi 1 bcd...
result:
ok ok, n = 12, k = 7, groups = 3003
Test #99:
score: 0
Accepted
time: 10ms
memory: 73260kb
input:
12 12
output:
2048 1 abcdefghijkl 2 abcdefghijk l 2 abcdefghijl k 2 abcdefghikl j 2 abcdefghjkl i 2 abcdefgijkl h 2 abcdefhijkl g 2 abcdeghijkl f 2 abcdfghijkl e 2 abcefghijkl d 2 abdefghijkl c 2 acdefghijkl b 2 bcdefghijkl a 2 abcdefghij kl 2 abcdefghik jl 2 abcdefghjk il 2 abcdefgijk hl 2 abcdefhijk gl 2 abcdeg...
result:
ok ok, n = 12, k = 12, groups = 2048
Test #100:
score: 0
Accepted
time: 11ms
memory: 53948kb
input:
12 5
output:
1507 1 abcde 1 abcdf 1 abcef 1 abdef 1 acdef 1 bcdef 1 abcdg 1 abceg 1 abdeg 1 acdeg 1 bcdeg 1 abcfg 1 abdfg 1 acdfg 1 bcdfg 1 abefg 1 acefg 1 bcefg 1 adefg 1 bdefg 1 cdefg 1 abcdh 1 abceh 1 abdeh 1 acdeh 1 bcdeh 1 abcfh 1 abdfh 1 acdfh 1 bcdfh 1 abefh 1 acefh 1 bcefh 1 adefh 1 bdefh 1 cdefh 1 abcgh...
result:
ok ok, n = 12, k = 5, groups = 1507
Test #101:
score: 0
Accepted
time: 8ms
memory: 76116kb
input:
12 8
output:
3251 1 abcdefgh 1 abcdefgi 1 abcdefhi 1 abcdeghi 1 abcdfghi 1 abcefghi 1 abdefghi 1 acdefghi 1 bcdefghi 1 abcdefgj 1 abcdefhj 1 abcdeghj 1 abcdfghj 1 abcefghj 1 abdefghj 1 acdefghj 1 bcdefghj 1 abcdefij 1 abcdegij 1 abcdfgij 1 abcefgij 1 abdefgij 1 acdefgij 1 bcdefgij 1 abcdehij 1 abcdfhij 1 abcefhi...
result:
ok ok, n = 12, k = 8, groups = 3251
Test #102:
score: 0
Accepted
time: 3ms
memory: 75184kb
input:
12 4
output:
748 1 abcd 1 abce 1 abde 1 acde 1 bcde 1 abcf 1 abdf 1 acdf 1 bcdf 1 abef 1 acef 1 bcef 1 adef 1 bdef 1 cdef 1 abcg 1 abdg 1 acdg 1 bcdg 1 abeg 1 aceg 1 bceg 1 adeg 1 bdeg 1 cdeg 1 abfg 1 acfg 1 bcfg 1 adfg 1 bdfg 1 cdfg 1 aefg 1 befg 1 cefg 1 defg 1 abch 1 abdh 1 acdh 1 bcdh 1 abeh 1 aceh 1 bceh 1 ...
result:
ok ok, n = 12, k = 4, groups = 748
Test #103:
score: 0
Accepted
time: 3ms
memory: 56244kb
input:
12 3
output:
286 1 abc 1 abd 1 acd 1 bcd 1 abe 1 ace 1 bce 1 ade 1 bde 1 cde 1 abf 1 acf 1 bcf 1 adf 1 bdf 1 cdf 1 aef 1 bef 1 cef 1 def 1 abg 1 acg 1 bcg 1 adg 1 bdg 1 cdg 1 aeg 1 beg 1 ceg 1 deg 1 afg 1 bfg 1 cfg 1 dfg 1 efg 1 abh 1 ach 1 bch 1 adh 1 bdh 1 cdh 1 aeh 1 beh 1 ceh 1 deh 1 afh 1 bfh 1 cfh 1 dfh 1 ...
result:
ok ok, n = 12, k = 3, groups = 286
Test #104:
score: 0
Accepted
time: 12ms
memory: 57764kb
input:
12 9
output:
3223 1 abcdefghi 1 abcdefghj 1 abcdefgij 1 abcdefhij 1 abcdeghij 1 abcdfghij 1 abcefghij 1 abdefghij 1 acdefghij 1 bcdefghij 1 abcdefghk 1 abcdefgik 1 abcdefhik 1 abcdeghik 1 abcdfghik 1 abcefghik 1 abdefghik 1 acdefghik 1 bcdefghik 1 abcdefgjk 1 abcdefhjk 1 abcdeghjk 1 abcdfghjk 1 abcefghjk 1 abdef...
result:
ok ok, n = 12, k = 9, groups = 3223
Test #105:
score: 0
Accepted
time: 10ms
memory: 57308kb
input:
11 9
output:
1474 1 abcdefghi 1 abcdefghj 1 abcdefgij 1 abcdefhij 1 abcdeghij 1 abcdfghij 1 abcefghij 1 abdefghij 1 acdefghij 1 bcdefghij 1 abcdefghk 1 abcdefgik 1 abcdefhik 1 abcdeghik 1 abcdfghik 1 abcefghik 1 abdefghik 1 acdefghik 1 bcdefghik 1 abcdefgjk 1 abcdefhjk 1 abcdeghjk 1 abcdfghjk 1 abcefghjk 1 abdef...
result:
ok ok, n = 11, k = 9, groups = 1474
Test #106:
score: 0
Accepted
time: 3ms
memory: 54012kb
input:
11 11
output:
1024 1 abcdefghijk 2 abcdefghij k 2 abcdefghik j 2 abcdefghjk i 2 abcdefgijk h 2 abcdefhijk g 2 abcdeghijk f 2 abcdfghijk e 2 abcefghijk d 2 abdefghijk c 2 acdefghijk b 2 bcdefghijk a 2 abcdefghi jk 2 abcdefghj ik 2 abcdefgij hk 2 abcdefhij gk 2 abcdeghij fk 2 abcdfghij ek 2 abcefghij dk 2 abdefghij...
result:
ok ok, n = 11, k = 11, groups = 1024
Test #107:
score: 0
Accepted
time: 3ms
memory: 41832kb
input:
11 1
output:
11 1 a 1 b 1 c 1 d 1 e 1 f 1 g 1 h 1 i 1 j 1 k
result:
ok ok, n = 11, k = 1, groups = 11
Test #108:
score: 0
Accepted
time: 9ms
memory: 75200kb
input:
11 4
output:
523 1 abcd 1 abce 1 abde 1 acde 1 bcde 1 abcf 1 abdf 1 acdf 1 bcdf 1 abef 1 acef 1 bcef 1 adef 1 bdef 1 cdef 1 abcg 1 abdg 1 acdg 1 bcdg 1 abeg 1 aceg 1 bceg 1 adeg 1 bdeg 1 cdeg 1 abfg 1 acfg 1 bcfg 1 adfg 1 bdfg 1 cdfg 1 aefg 1 befg 1 cefg 1 defg 1 abch 1 abdh 1 acdh 1 bcdh 1 abeh 1 aceh 1 bceh 1 ...
result:
ok ok, n = 11, k = 4, groups = 523
Test #109:
score: 0
Accepted
time: 7ms
memory: 74332kb
input:
11 6
output:
1337 1 abcdef 1 abcdeg 1 abcdfg 1 abcefg 1 abdefg 1 acdefg 1 bcdefg 1 abcdeh 1 abcdfh 1 abcefh 1 abdefh 1 acdefh 1 bcdefh 1 abcdgh 1 abcegh 1 abdegh 1 acdegh 1 bcdegh 1 abcfgh 1 abdfgh 1 acdfgh 1 bcdfgh 1 abefgh 1 acefgh 1 bcefgh 1 adefgh 1 bdefgh 1 cdefgh 1 abcdei 1 abcdfi 1 abcefi 1 abdefi 1 acdef...
result:
ok ok, n = 11, k = 6, groups = 1337
Test #110:
score: 0
Accepted
time: 15ms
memory: 72216kb
input:
11 10
output:
1254 1 abcdefghij 1 abcdefghik 1 abcdefghjk 1 abcdefgijk 1 abcdefhijk 1 abcdeghijk 1 abcdfghijk 1 abcefghijk 1 abdefghijk 1 acdefghijk 1 bcdefghijk 1 abcdefghi 1 abcdefghj 1 abcdefgij 1 abcdefhij 1 abcdeghij 1 abcdfghij 1 abcefghij 1 abdefghij 1 acdefghij 2 bcdefghij k 1 abcdefghk 1 abcdefgik 1 abcd...
result:
ok ok, n = 11, k = 10, groups = 1254
Test #111:
score: 0
Accepted
time: 13ms
memory: 57208kb
input:
11 7
output:
1584 1 abcdefg 1 abcdefh 1 abcdegh 1 abcdfgh 1 abcefgh 1 abdefgh 1 acdefgh 1 bcdefgh 1 abcdefi 1 abcdegi 1 abcdfgi 1 abcefgi 1 abdefgi 1 acdefgi 1 bcdefgi 1 abcdehi 1 abcdfhi 1 abcefhi 1 abdefhi 1 acdefhi 1 bcdefhi 1 abcdghi 1 abceghi 1 abdeghi 1 acdeghi 1 bcdeghi 1 abcfghi 1 abdfghi 1 acdfghi 1 bcd...
result:
ok ok, n = 11, k = 7, groups = 1584
Test #112:
score: 0
Accepted
time: 0ms
memory: 65672kb
input:
11 2
output:
61 1 ab 1 ac 1 bc 1 ad 1 bd 1 cd 1 ae 1 be 1 ce 1 de 1 af 1 bf 1 cf 1 df 1 ef 1 ag 1 bg 1 cg 1 dg 1 eg 1 fg 1 ah 1 bh 1 ch 1 dh 1 eh 1 fh 1 gh 1 ai 1 bi 1 ci 1 di 1 ei 1 fi 1 gi 1 hi 1 aj 1 bj 1 cj 1 dj 1 ej 1 fj 1 gj 1 hj 1 ij 1 ak 1 bk 1 ck 1 dk 1 ek 1 fk 1 gk 1 hk 1 ik 1 jk 2 a b 2 c d 2 e f 2 g ...
result:
ok ok, n = 11, k = 2, groups = 61
Test #113:
score: 0
Accepted
time: 11ms
memory: 56556kb
input:
11 5
output:
957 1 abcde 1 abcdf 1 abcef 1 abdef 1 acdef 1 bcdef 1 abcdg 1 abceg 1 abdeg 1 acdeg 1 bcdeg 1 abcfg 1 abdfg 1 acdfg 1 bcdfg 1 abefg 1 acefg 1 bcefg 1 adefg 1 bdefg 1 cdefg 1 abcdh 1 abceh 1 abdeh 1 acdeh 1 bcdeh 1 abcfh 1 abdfh 1 acdfh 1 bcdfh 1 abefh 1 acefh 1 bcefh 1 adefh 1 bdefh 1 cdefh 1 abcgh ...
result:
ok ok, n = 11, k = 5, groups = 957
Test #114:
score: 0
Accepted
time: 9ms
memory: 57196kb
input:
11 3
output:
220 1 abc 1 abd 1 acd 1 bcd 1 abe 1 ace 1 bce 1 ade 1 bde 1 cde 1 abf 1 acf 1 bcf 1 adf 1 bdf 1 cdf 1 aef 1 bef 1 cef 1 def 1 abg 1 acg 1 bcg 1 adg 1 bdg 1 cdg 1 aeg 1 beg 1 ceg 1 deg 1 afg 1 bfg 1 cfg 1 dfg 1 efg 1 abh 1 ach 1 bch 1 adh 1 bdh 1 cdh 1 aeh 1 beh 1 ceh 1 deh 1 afh 1 bfh 1 cfh 1 dfh 1 ...
result:
ok ok, n = 11, k = 3, groups = 220
Test #115:
score: 0
Accepted
time: 4ms
memory: 75768kb
input:
10 8
output:
732 1 abcdefgh 1 abcdefgi 1 abcdefhi 1 abcdeghi 1 abcdfghi 1 abcefghi 1 abdefghi 1 acdefghi 1 bcdefghi 1 abcdefgj 1 abcdefhj 1 abcdeghj 1 abcdfghj 1 abcefghj 1 abdefghj 1 acdefghj 1 bcdefghj 1 abcdefij 1 abcdegij 1 abcdfgij 1 abcefgij 1 abdefgij 1 acdefgij 1 bcdefgij 1 abcdehij 1 abcdfhij 1 abcefhij...
result:
ok ok, n = 10, k = 8, groups = 732
Test #116:
score: 0
Accepted
time: 0ms
memory: 42512kb
input:
10 1
output:
10 1 a 1 b 1 c 1 d 1 e 1 f 1 g 1 h 1 i 1 j
result:
ok ok, n = 10, k = 1, groups = 10
Test #117:
score: 0
Accepted
time: 11ms
memory: 56220kb
input:
10 9
output:
637 1 abcdefghi 1 abcdefghj 1 abcdefgij 1 abcdefhij 1 abcdeghij 1 abcdfghij 1 abcefghij 1 abdefghij 1 acdefghij 1 bcdefghij 1 abcdefgh 1 abcdefgi 1 abcdefhi 1 abcdeghi 1 abcdfghi 1 abcefghi 1 abdefghi 1 acdefghi 2 bcdefghi j 1 abcdefgj 1 abcdefhj 1 abcdeghj 1 abcdfghj 1 abcefghj 1 abdefghj 1 acdefgh...
result:
ok ok, n = 10, k = 9, groups = 637
Test #118:
score: 0
Accepted
time: 0ms
memory: 75612kb
input:
10 10
output:
512 1 abcdefghij 2 abcdefghi j 2 abcdefghj i 2 abcdefgij h 2 abcdefhij g 2 abcdeghij f 2 abcdfghij e 2 abcefghij d 2 abdefghij c 2 acdefghij b 2 bcdefghij a 2 abcdefgh ij 2 abcdefgi hj 2 abcdefhi gj 2 abcdeghi fj 2 abcdfghi ej 2 abcefghi dj 2 abdefghi cj 2 acdefghi bj 2 bcdefghi aj 2 abcdefgj hi 2 a...
result:
ok ok, n = 10, k = 10, groups = 512
Test #119:
score: 0
Accepted
time: 9ms
memory: 72716kb
input:
10 4
output:
353 1 abcd 1 abce 1 abde 1 acde 1 bcde 1 abcf 1 abdf 1 acdf 1 bcdf 1 abef 1 acef 1 bcef 1 adef 1 bdef 1 cdef 1 abcg 1 abdg 1 acdg 1 bcdg 1 abeg 1 aceg 1 bceg 1 adeg 1 bdeg 1 cdeg 1 abfg 1 acfg 1 bcfg 1 adfg 1 bdfg 1 cdfg 1 aefg 1 befg 1 cefg 1 defg 1 abch 1 abdh 1 acdh 1 bcdh 1 abeh 1 aceh 1 bceh 1 ...
result:
ok ok, n = 10, k = 4, groups = 353
Test #120:
score: 0
Accepted
time: 7ms
memory: 56528kb
input:
10 3
output:
165 1 abc 1 abd 1 acd 1 bcd 1 abe 1 ace 1 bce 1 ade 1 bde 1 cde 1 abf 1 acf 1 bcf 1 adf 1 bdf 1 cdf 1 aef 1 bef 1 cef 1 def 1 abg 1 acg 1 bcg 1 adg 1 bdg 1 cdg 1 aeg 1 beg 1 ceg 1 deg 1 afg 1 bfg 1 cfg 1 dfg 1 efg 1 abh 1 ach 1 bch 1 adh 1 bdh 1 cdh 1 aeh 1 beh 1 ceh 1 deh 1 afh 1 bfh 1 cfh 1 dfh 1 ...
result:
ok ok, n = 10, k = 3, groups = 165
Test #121:
score: 0
Accepted
time: 11ms
memory: 64596kb
input:
10 2
output:
50 1 ab 1 ac 1 bc 1 ad 1 bd 1 cd 1 ae 1 be 1 ce 1 de 1 af 1 bf 1 cf 1 df 1 ef 1 ag 1 bg 1 cg 1 dg 1 eg 1 fg 1 ah 1 bh 1 ch 1 dh 1 eh 1 fh 1 gh 1 ai 1 bi 1 ci 1 di 1 ei 1 fi 1 gi 1 hi 1 aj 1 bj 1 cj 1 dj 1 ej 1 fj 1 gj 1 hj 1 ij 2 a b 2 c d 2 e f 2 g h 2 i j
result:
ok ok, n = 10, k = 2, groups = 50
Test #122:
score: 0
Accepted
time: 3ms
memory: 75152kb
input:
10 6
output:
732 1 abcdef 1 abcdeg 1 abcdfg 1 abcefg 1 abdefg 1 acdefg 1 bcdefg 1 abcdeh 1 abcdfh 1 abcefh 1 abdefh 1 acdefh 1 bcdefh 1 abcdgh 1 abcegh 1 abdegh 1 acdegh 1 bcdegh 1 abcfgh 1 abdfgh 1 acdfgh 1 bcdfgh 1 abefgh 1 acefgh 1 bcefgh 1 adefgh 1 bdefgh 1 cdefgh 1 abcdei 1 abcdfi 1 abcefi 1 abdefi 1 acdefi...
result:
ok ok, n = 10, k = 6, groups = 732
Test #123:
score: 0
Accepted
time: 3ms
memory: 55520kb
input:
10 5
output:
582 1 abcde 1 abcdf 1 abcef 1 abdef 1 acdef 1 bcdef 1 abcdg 1 abceg 1 abdeg 1 acdeg 1 bcdeg 1 abcfg 1 abdfg 1 acdfg 1 bcdfg 1 abefg 1 acefg 1 bcefg 1 adefg 1 bdefg 1 cdefg 1 abcdh 1 abceh 1 abdeh 1 acdeh 1 bcdeh 1 abcfh 1 abdfh 1 acdfh 1 bcdfh 1 abefh 1 acefh 1 bcefh 1 adefh 1 bdefh 1 cdefh 1 abcgh ...
result:
ok ok, n = 10, k = 5, groups = 582
Test #124:
score: 0
Accepted
time: 4ms
memory: 75016kb
input:
9 8
output:
318 1 abcdefgh 1 abcdefgi 1 abcdefhi 1 abcdeghi 1 abcdfghi 1 abcefghi 1 abdefghi 1 acdefghi 1 bcdefghi 1 abcdefg 1 abcdefh 1 abcdegh 1 abcdfgh 1 abcefgh 1 abdefgh 1 acdefgh 2 bcdefgh i 1 abcdefi 1 abcdegi 1 abcdfgi 1 abcefgi 1 abdefgi 1 acdefgi 2 bcdefgi h 1 abcdehi 1 abcdfhi 1 abcefhi 1 abdefhi 1 a...
result:
ok ok, n = 9, k = 8, groups = 318
Test #125:
score: 0
Accepted
time: 10ms
memory: 73664kb
input:
9 4
output:
228 1 abcd 1 abce 1 abde 1 acde 1 bcde 1 abcf 1 abdf 1 acdf 1 bcdf 1 abef 1 acef 1 bcef 1 adef 1 bdef 1 cdef 1 abcg 1 abdg 1 acdg 1 bcdg 1 abeg 1 aceg 1 bceg 1 adeg 1 bdeg 1 cdeg 1 abfg 1 acfg 1 bcfg 1 adfg 1 bdfg 1 cdfg 1 aefg 1 befg 1 cefg 1 defg 1 abch 1 abdh 1 acdh 1 bcdh 1 abeh 1 aceh 1 bceh 1 ...
result:
ok ok, n = 9, k = 4, groups = 228
Test #126:
score: 0
Accepted
time: 11ms
memory: 56892kb
input:
9 7
output:
372 1 abcdefg 1 abcdefh 1 abcdegh 1 abcdfgh 1 abcefgh 1 abdefgh 1 acdefgh 1 bcdefgh 1 abcdefi 1 abcdegi 1 abcdfgi 1 abcefgi 1 abdefgi 1 acdefgi 1 bcdefgi 1 abcdehi 1 abcdfhi 1 abcefhi 1 abdefhi 1 acdefhi 1 bcdefhi 1 abcdghi 1 abceghi 1 abdeghi 1 acdeghi 1 bcdeghi 1 abcfghi 1 abdfghi 1 acdfghi 1 bcdf...
result:
ok ok, n = 9, k = 7, groups = 372
Test #127:
score: 0
Accepted
time: 3ms
memory: 56120kb
input:
9 5
output:
336 1 abcde 1 abcdf 1 abcef 1 abdef 1 acdef 1 bcdef 1 abcdg 1 abceg 1 abdeg 1 acdeg 1 bcdeg 1 abcfg 1 abdfg 1 acdfg 1 bcdfg 1 abefg 1 acefg 1 bcefg 1 adefg 1 bdefg 1 cdefg 1 abcdh 1 abceh 1 abdeh 1 acdeh 1 bcdeh 1 abcfh 1 abdfh 1 acdfh 1 bcdfh 1 abefh 1 acefh 1 bcefh 1 adefh 1 bdefh 1 cdefh 1 abcgh ...
result:
ok ok, n = 9, k = 5, groups = 336
Test #128:
score: 0
Accepted
time: 4ms
memory: 75536kb
input:
9 6
output:
378 1 abcdef 1 abcdeg 1 abcdfg 1 abcefg 1 abdefg 1 acdefg 1 bcdefg 1 abcdeh 1 abcdfh 1 abcefh 1 abdefh 1 acdefh 1 bcdefh 1 abcdgh 1 abcegh 1 abdegh 1 acdegh 1 bcdegh 1 abcfgh 1 abdfgh 1 acdfgh 1 bcdfgh 1 abefgh 1 acefgh 1 bcefgh 1 adefgh 1 bdefgh 1 cdefgh 1 abcdei 1 abcdfi 1 abcefi 1 abdefi 1 acdefi...
result:
ok ok, n = 9, k = 6, groups = 378
Test #129:
score: 0
Accepted
time: 5ms
memory: 42636kb
input:
9 1
output:
9 1 a 1 b 1 c 1 d 1 e 1 f 1 g 1 h 1 i
result:
ok ok, n = 9, k = 1, groups = 9
Test #130:
score: 0
Accepted
time: 3ms
memory: 56200kb
input:
9 3
output:
120 1 abc 1 abd 1 acd 1 bcd 1 abe 1 ace 1 bce 1 ade 1 bde 1 cde 1 abf 1 acf 1 bcf 1 adf 1 bdf 1 cdf 1 aef 1 bef 1 cef 1 def 1 abg 1 acg 1 bcg 1 adg 1 bdg 1 cdg 1 aeg 1 beg 1 ceg 1 deg 1 afg 1 bfg 1 cfg 1 dfg 1 efg 1 abh 1 ach 1 bch 1 adh 1 bdh 1 cdh 1 aeh 1 beh 1 ceh 1 deh 1 afh 1 bfh 1 cfh 1 dfh 1 ...
result:
ok ok, n = 9, k = 3, groups = 120
Test #131:
score: 0
Accepted
time: 8ms
memory: 66596kb
input:
9 2
output:
41 1 ab 1 ac 1 bc 1 ad 1 bd 1 cd 1 ae 1 be 1 ce 1 de 1 af 1 bf 1 cf 1 df 1 ef 1 ag 1 bg 1 cg 1 dg 1 eg 1 fg 1 ah 1 bh 1 ch 1 dh 1 eh 1 fh 1 gh 1 ai 1 bi 1 ci 1 di 1 ei 1 fi 1 gi 1 hi 2 a b 2 c d 2 e f 2 g h 1 i
result:
ok ok, n = 9, k = 2, groups = 41
Test #132:
score: 0
Accepted
time: 3ms
memory: 53532kb
input:
8 7
output:
162 1 abcdefg 1 abcdefh 1 abcdegh 1 abcdfgh 1 abcefgh 1 abdefgh 1 acdefgh 1 bcdefgh 1 abcdef 1 abcdeg 1 abcdfg 1 abcefg 1 abdefg 1 acdefg 2 bcdefg h 1 abcdeh 1 abcdfh 1 abcefh 1 abdefh 1 acdefh 2 bcdefh g 1 abcdgh 1 abcegh 1 abdegh 1 acdegh 2 bcdegh f 1 abcfgh 1 abdfgh 1 acdfgh 2 bcdfgh e 1 abefgh 1...
result:
ok ok, n = 8, k = 7, groups = 162
Test #133:
score: 0
Accepted
time: 8ms
memory: 73672kb
input:
8 4
output:
140 1 abcd 1 abce 1 abde 1 acde 1 bcde 1 abcf 1 abdf 1 acdf 1 bcdf 1 abef 1 acef 1 bcef 1 adef 1 bdef 1 cdef 1 abcg 1 abdg 1 acdg 1 bcdg 1 abeg 1 aceg 1 bceg 1 adeg 1 bdeg 1 cdeg 1 abfg 1 acfg 1 bcfg 1 adfg 1 bdfg 1 cdfg 1 aefg 1 befg 1 cefg 1 defg 1 abch 1 abdh 1 acdh 1 bcdh 1 abeh 1 aceh 1 bceh 1 ...
result:
ok ok, n = 8, k = 4, groups = 140
Test #134:
score: 0
Accepted
time: 6ms
memory: 41504kb
input:
8 1
output:
8 1 a 1 b 1 c 1 d 1 e 1 f 1 g 1 h
result:
ok ok, n = 8, k = 1, groups = 8
Test #135:
score: 0
Accepted
time: 3ms
memory: 75616kb
input:
8 6
output:
182 1 abcdef 1 abcdeg 1 abcdfg 1 abcefg 1 abdefg 1 acdefg 1 bcdefg 1 abcdeh 1 abcdfh 1 abcefh 1 abdefh 1 acdefh 1 bcdefh 1 abcdgh 1 abcegh 1 abdegh 1 acdegh 1 bcdegh 1 abcfgh 1 abdfgh 1 acdfgh 1 bcdfgh 1 abefgh 1 acefgh 1 bcefgh 1 adefgh 1 bdefgh 1 cdefgh 1 abcde 1 abcdf 1 abcef 1 abdef 1 acdef 1 bc...
result:
ok ok, n = 8, k = 6, groups = 182
Test #136:
score: 0
Accepted
time: 7ms
memory: 57152kb
input:
8 5
output:
182 1 abcde 1 abcdf 1 abcef 1 abdef 1 acdef 1 bcdef 1 abcdg 1 abceg 1 abdeg 1 acdeg 1 bcdeg 1 abcfg 1 abdfg 1 acdfg 1 bcdfg 1 abefg 1 acefg 1 bcefg 1 adefg 1 bdefg 1 cdefg 1 abcdh 1 abceh 1 abdeh 1 acdeh 1 bcdeh 1 abcfh 1 abdfh 1 acdfh 1 bcdfh 1 abefh 1 acefh 1 bcefh 1 adefh 1 bdefh 1 cdefh 1 abcgh ...
result:
ok ok, n = 8, k = 5, groups = 182
Test #137:
score: 0
Accepted
time: 15ms
memory: 63940kb
input:
8 2
output:
32 1 ab 1 ac 1 bc 1 ad 1 bd 1 cd 1 ae 1 be 1 ce 1 de 1 af 1 bf 1 cf 1 df 1 ef 1 ag 1 bg 1 cg 1 dg 1 eg 1 fg 1 ah 1 bh 1 ch 1 dh 1 eh 1 fh 1 gh 2 a b 2 c d 2 e f 2 g h
result:
ok ok, n = 8, k = 2, groups = 32
Test #138:
score: 0
Accepted
time: 9ms
memory: 70596kb
input:
8 8
output:
128 1 abcdefgh 2 abcdefg h 2 abcdefh g 2 abcdegh f 2 abcdfgh e 2 abcefgh d 2 abdefgh c 2 acdefgh b 2 bcdefgh a 2 abcdef gh 2 abcdeg fh 2 abcdfg eh 2 abcefg dh 2 abdefg ch 2 acdefg bh 2 bcdefg ah 2 abcdeh fg 2 abcdfh eg 2 abcefh dg 2 abdefh cg 2 acdefh bg 2 bcdefh ag 2 abcdgh ef 2 abcegh df 2 abdegh ...
result:
ok ok, n = 8, k = 8, groups = 128
Test #139:
score: 0
Accepted
time: 3ms
memory: 55316kb
input:
8 3
output:
84 1 abc 1 abd 1 acd 1 bcd 1 abe 1 ace 1 bce 1 ade 1 bde 1 cde 1 abf 1 acf 1 bcf 1 adf 1 bdf 1 cdf 1 aef 1 bef 1 cef 1 def 1 abg 1 acg 1 bcg 1 adg 1 bdg 1 cdg 1 aeg 1 beg 1 ceg 1 deg 1 afg 1 bfg 1 cfg 1 dfg 1 efg 1 abh 1 ach 1 bch 1 adh 1 bdh 1 cdh 1 aeh 1 beh 1 ceh 1 deh 1 afh 1 bfh 1 cfh 1 dfh 1 e...
result:
ok ok, n = 8, k = 3, groups = 84
Test #140:
score: 0
Accepted
time: 3ms
memory: 54128kb
input:
7 5
output:
91 1 abcde 1 abcdf 1 abcef 1 abdef 1 acdef 1 bcdef 1 abcdg 1 abceg 1 abdeg 1 acdeg 1 bcdeg 1 abcfg 1 abdfg 1 acdfg 1 bcdfg 1 abefg 1 acefg 1 bcefg 1 adefg 1 bdefg 1 cdefg 1 abcd 1 abce 1 abde 1 acde 1 bcde 1 abcf 1 abdf 1 acdf 1 bcdf 1 abef 1 acef 1 bcef 1 adef 1 bdef 2 cdef g 1 abcg 1 abdg 1 acdg 1...
result:
ok ok, n = 7, k = 5, groups = 91
Test #141:
score: 0
Accepted
time: 3ms
memory: 53808kb
input:
7 3
output:
56 1 abc 1 abd 1 acd 1 bcd 1 abe 1 ace 1 bce 1 ade 1 bde 1 cde 1 abf 1 acf 1 bcf 1 adf 1 bdf 1 cdf 1 aef 1 bef 1 cef 1 def 1 abg 1 acg 1 bcg 1 adg 1 bdg 1 cdg 1 aeg 1 beg 1 ceg 1 deg 1 afg 1 bfg 1 cfg 1 dfg 1 efg 1 ab 1 ac 1 bc 1 ad 1 bd 1 cd 1 ae 1 be 1 ce 1 de 1 af 1 bf 1 cf 1 df 2 ef g 2 ag b 2 b...
result:
ok ok, n = 7, k = 3, groups = 56
Test #142:
score: 0
Accepted
time: 3ms
memory: 42124kb
input:
7 1
output:
7 1 a 1 b 1 c 1 d 1 e 1 f 1 g
result:
ok ok, n = 7, k = 1, groups = 7
Test #143:
score: 0
Accepted
time: 4ms
memory: 75428kb
input:
7 6
output:
81 1 abcdef 1 abcdeg 1 abcdfg 1 abcefg 1 abdefg 1 acdefg 1 bcdefg 1 abcde 1 abcdf 1 abcef 1 abdef 1 acdef 2 bcdef g 1 abcdg 1 abceg 1 abdeg 1 acdeg 2 bcdeg f 1 abcfg 1 abdfg 1 acdfg 2 bcdfg e 1 abefg 1 acefg 2 bcefg d 2 adefg c 2 bdefg a 2 cdefg b 1 abcd 1 abce 1 abde 1 acde 2 bcde fg 1 abcf 1 abdf ...
result:
ok ok, n = 7, k = 6, groups = 81
Test #144:
score: 0
Accepted
time: 4ms
memory: 56824kb
input:
7 7
output:
64 1 abcdefg 2 abcdef g 2 abcdeg f 2 abcdfg e 2 abcefg d 2 abdefg c 2 acdefg b 2 bcdefg a 2 abcde fg 2 abcdf eg 2 abcef dg 2 abdef cg 2 acdef bg 2 bcdef ag 2 abcdg ef 2 abceg df 2 abdeg cf 2 acdeg bf 2 bcdeg af 2 abcfg de 2 abdfg ce 2 acdfg be 2 bcdfg ae 2 abefg cd 2 acefg bd 2 bcefg ad 2 adefg bc 2...
result:
ok ok, n = 7, k = 7, groups = 64
Test #145:
score: 0
Accepted
time: 8ms
memory: 53756kb
input:
6 3
output:
35 1 abc 1 abd 1 acd 1 bcd 1 abe 1 ace 1 bce 1 ade 1 bde 1 cde 1 abf 1 acf 1 bcf 1 adf 1 bdf 1 cdf 1 aef 1 bef 1 cef 1 def 1 ab 1 ac 1 bc 1 ad 1 bd 1 cd 1 ae 1 be 2 ce a 2 de f 1 af 2 bf c 2 cf b 2 df e 2 ef d
result:
ok ok, n = 6, k = 3, groups = 35
Test #146:
score: 0
Accepted
time: 3ms
memory: 56664kb
input:
6 5
output:
41 1 abcde 1 abcdf 1 abcef 1 abdef 1 acdef 1 bcdef 1 abcd 1 abce 1 abde 1 acde 2 bcde f 1 abcf 1 abdf 1 acdf 2 bcdf e 1 abef 1 acef 2 bcef d 2 adef c 2 bdef a 2 cdef b 1 abc 1 abd 1 acd 2 bcd ef 1 abe 1 ace 2 bce df 2 ade cf 2 bde af 2 cde bf 2 abf de 2 acf be 2 bcf ae 2 adf ce 2 bdf ac 2 cdf ab 2 a...
result:
ok ok, n = 6, k = 5, groups = 41
Test #147:
score: 0
Accepted
time: 0ms
memory: 75724kb
input:
6 6
output:
32 1 abcdef 2 abcde f 2 abcdf e 2 abcef d 2 abdef c 2 acdef b 2 bcdef a 2 abcd ef 2 abce df 2 abde cf 2 acde bf 2 bcde af 2 abcf de 2 abdf ce 2 acdf be 2 bcdf ae 2 abef cd 2 acef bd 2 bcef ad 2 adef bc 2 bdef ac 2 cdef ab 2 abc def 2 abd cef 2 acd bef 2 bcd aef 2 abe cdf 2 ace bdf 2 bce adf 2 ade bc...
result:
ok ok, n = 6, k = 6, groups = 32
Test #148:
score: 0
Accepted
time: 9ms
memory: 41220kb
input:
6 1
output:
6 1 a 1 b 1 c 1 d 1 e 1 f
result:
ok ok, n = 6, k = 1, groups = 6
Test #149:
score: 0
Accepted
time: 4ms
memory: 65632kb
input:
5 2
output:
13 1 ab 1 ac 1 bc 1 ad 1 bd 1 cd 1 ae 1 be 1 ce 1 de 2 a b 2 c d 1 e
result:
ok ok, n = 5, k = 2, groups = 13
Test #150:
score: 0
Accepted
time: 4ms
memory: 55480kb
input:
5 5
output:
16 1 abcde 2 abcd e 2 abce d 2 abde c 2 acde b 2 bcde a 2 abc de 2 abd ce 2 acd be 2 bcd ae 2 abe cd 2 ace bd 2 bce ad 2 ade bc 2 bde ac 2 cde ab
result:
ok ok, n = 5, k = 5, groups = 16
Test #151:
score: 0
Accepted
time: 6ms
memory: 42520kb
input:
5 1
output:
5 1 a 1 b 1 c 1 d 1 e
result:
ok ok, n = 5, k = 1, groups = 5
Test #152:
score: 0
Accepted
time: 7ms
memory: 66040kb
input:
4 2
output:
8 1 ab 1 ac 1 bc 1 ad 1 bd 1 cd 2 a b 2 c d
result:
ok ok, n = 4, k = 2, groups = 8
Test #153:
score: 0
Accepted
time: 0ms
memory: 42120kb
input:
4 1
output:
4 1 a 1 b 1 c 1 d
result:
ok ok, n = 4, k = 1, groups = 4