QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#606576#1428. Grp3un_larryfuncAC ✓3578ms201160kbC++205.3kb2024-10-03 10:43:292024-10-03 10:43:30

詳細信息

Test #1:

score: 100
Accepted
time: 3ms
memory: 32612kb

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: 4ms
memory: 26372kb

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: 0ms
memory: 10120kb

input:

1 1

output:

1
1 a

result:

ok ok, n = 1, k = 1, groups = 1

Test #4:

score: 0
Accepted
time: 4ms
memory: 10336kb

input:

2 1

output:

2
1 a
1 b

result:

ok ok, n = 2, k = 1, groups = 2

Test #5:

score: 0
Accepted
time: 0ms
memory: 34696kb

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: 9936kb

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: 4ms
memory: 26396kb

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: 4ms
memory: 40768kb

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: 4ms
memory: 26436kb

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: 11ms
memory: 44868kb

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 de
2 ac bd
2 bc ae
2 ad ce
2 cd be

result:

ok ok, n = 5, k = 4, groups = 20

Test #11:

score: 0
Accepted
time: 3ms
memory: 44860kb

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 be
2 bc af
2 ad cf
2 bd ef
2 ae bf
2 ce df
1 de

result:

ok ok, n = 6, k = 4, groups = 43

Test #12:

score: 0
Accepted
time: 6ms
memory: 26524kb

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: 30ms
memory: 43948kb

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: 4ms
memory: 26416kb

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: 11ms
memory: 47204kb

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: 255ms
memory: 43900kb

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: 27ms
memory: 43612kb

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: 3ms
memory: 34568kb

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: 0ms
memory: 44832kb

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: 0ms
memory: 10232kb

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: 11ms
memory: 34888kb

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: 34ms
memory: 29576kb

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: 0ms
memory: 32792kb

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: 1572ms
memory: 118384kb

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: 56ms
memory: 35332kb

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: 3578ms
memory: 201160kb

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: 1296ms
memory: 111516kb

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: 711ms
memory: 60240kb

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: 113ms
memory: 56088kb

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: 38ms
memory: 41276kb

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: 641ms
memory: 94952kb

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: 3038ms
memory: 135052kb

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: 73ms
memory: 40472kb

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: 2268ms
memory: 175960kb

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: 283ms
memory: 55440kb

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: 45ms
memory: 51744kb

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: 342ms
memory: 66220kb

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: 3066ms
memory: 174388kb

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: 43ms
memory: 35124kb

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: 33ms
memory: 18736kb

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: 94ms
memory: 35984kb

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: 1262ms
memory: 79968kb

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: 30ms
memory: 30172kb

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: 288ms
memory: 72400kb

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: 61ms
memory: 52200kb

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: 12ms
memory: 13712kb

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: 621ms
memory: 65128kb

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: 905ms
memory: 90576kb

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: 843ms
memory: 99232kb

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: 21ms
memory: 48432kb

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: 43ms
memory: 50528kb

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: 235ms
memory: 62068kb

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: 162ms
memory: 41440kb

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: 15ms
memory: 32168kb

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: 20ms
memory: 37992kb

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: 643ms
memory: 55380kb

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: 10ms
memory: 11712kb

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: 69ms
memory: 48100kb

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: 37ms
memory: 49900kb

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: 3ms
memory: 36628kb

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: 133ms
memory: 56656kb

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: 14ms
memory: 28400kb

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: 7ms
memory: 28156kb

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: 60ms
memory: 33100kb

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: 292ms
memory: 67516kb

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: 322ms
memory: 43964kb

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: 8ms
memory: 44680kb

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: 96ms
memory: 33428kb

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: 211ms
memory: 58704kb

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: 23ms
memory: 29324kb

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: 4ms
memory: 29344kb

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: 104ms
memory: 49544kb

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: 89ms
memory: 34168kb

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: 10ms
memory: 41708kb

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: 32ms
memory: 29848kb

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: 76ms
memory: 32376kb

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: 46304kb

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: 19ms
memory: 48532kb

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: 17ms
memory: 27408kb

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: 34ms
memory: 27828kb

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: 6ms
memory: 10968kb

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: 45ms
memory: 48840kb

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: 35536kb

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: 68ms
memory: 47380kb

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: 16ms
memory: 29280kb

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: 29ms
memory: 48072kb

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: 13ms
memory: 27144kb

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: 45384kb

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: 0ms
memory: 10512kb

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: 24936kb

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: 10ms
memory: 26828kb

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: 7ms
memory: 45892kb

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: 8ms
memory: 35364kb

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: 17ms
memory: 27240kb

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: 10ms
memory: 47380kb

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: 15ms
memory: 26788kb

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: 3ms
memory: 45616kb

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: 26808kb

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: 11ms
memory: 45172kb

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: 8ms
memory: 26724kb

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: 47644kb

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: 4ms
memory: 45432kb

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: 26644kb

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: 16ms
memory: 28864kb

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: 16ms
memory: 28664kb

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: 8ms
memory: 26568kb

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: 4ms
memory: 10220kb

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: 3ms
memory: 44984kb

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: 3ms
memory: 41256kb

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: 12ms
memory: 45072kb

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: 4ms
memory: 26620kb

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: 34740kb

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: 3ms
memory: 26664kb

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: 0ms
memory: 26552kb

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: 8ms
memory: 40876kb

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: 10096kb

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: 26528kb

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: 3ms
memory: 43200kb

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: 3ms
memory: 44948kb

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: 0ms
memory: 26488kb

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: 3ms
memory: 34676kb

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: 11ms
memory: 44996kb

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: 5ms
memory: 24460kb

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: 9ms
memory: 44908kb

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: 4ms
memory: 44904kb

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: 7ms
memory: 24424kb

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: 24432kb

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: 3ms
memory: 44956kb

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: 0ms
memory: 10076kb

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: 0ms
memory: 26520kb

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: 3ms
memory: 34680kb

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: 8ms
memory: 26392kb

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: 4ms
memory: 42836kb

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: 0ms
memory: 10084kb

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: 44892kb

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: 4ms
memory: 26744kb

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: 7ms
memory: 34584kb

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: 11ms
memory: 46984kb

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: 2ms
memory: 26520kb

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: 26508kb

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: 4ms
memory: 26432kb

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: 2ms
memory: 10128kb

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: 3ms
memory: 42772kb

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: 26436kb

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: 0ms
memory: 24388kb

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: 26692kb

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: 5ms
memory: 44864kb

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: 4ms
memory: 10348kb

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: 3ms
memory: 32864kb

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: 26460kb

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: 2ms
memory: 10012kb

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: 0ms
memory: 34588kb

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: 3ms
memory: 10332kb

input:

4 1

output:

4
1 a
1 b
1 c
1 d

result:

ok ok, n = 4, k = 1, groups = 4