QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#114420#1428. GrpMaMengQiWA 1ms3580kbC++202.2kb2023-06-22 01:50:212023-06-22 01:50:23

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3576kb

input:

3 2

output:

5
1 bc 
1 ac 
1 ab 
1 b 
2 c a 

result:

ok ok, n = 3, k = 2, groups = 5

Test #2:

score: 0
Accepted
time: 1ms
memory: 3448kb

input:

3 3

output:

4
1 abc 
2 bc a 
2 ac b 
2 ab c 

result:

ok ok, n = 3, k = 3, groups = 4

Test #3:

score: 0
Accepted
time: 1ms
memory: 3532kb

input:

1 1

output:

1
1 a 

result:

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

Test #4:

score: 0
Accepted
time: 1ms
memory: 3508kb

input:

2 1

output:

2
1 b 
1 a 

result:

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

Test #5:

score: 0
Accepted
time: 1ms
memory: 3540kb

input:

2 2

output:

2
1 ab 
2 b a 

result:

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

Test #6:

score: 0
Accepted
time: 1ms
memory: 3484kb

input:

3 1

output:

3
1 c 
1 b 
1 a 

result:

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

Test #7:

score: 0
Accepted
time: 1ms
memory: 3580kb

input:

4 3

output:

10
1 bcd 
1 acd 
1 abd 
1 abc 
1 ac 
1 ab 
2 cd a 
2 bd c 
2 ad b 
2 bc d 

result:

ok ok, n = 4, k = 3, groups = 10

Test #8:

score: 0
Accepted
time: 1ms
memory: 3480kb

input:

4 4

output:

8
1 abcd 
2 bcd a 
2 acd b 
2 abd c 
2 abc d 
2 cd ab 
2 bd ac 
2 ad bc 

result:

ok ok, n = 4, k = 4, groups = 8

Test #9:

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

input:

5 3

output:

20
1 abd 
1 ce 
1 be 
1 de 
1 cd 
1 bd 
1 bde 
1 ade 
1 bce 
1 cde 
1 ace 
1 abe 
1 bcd 
1 acd 
1 abc 
2 ab c 
2 ac b 
2 bc a 
2 ad e 
2 ae d 

result:

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

Test #10:

score: -100
Wrong Answer
time: 1ms
memory: 3512kb

input:

5 4

output:

22
1 ade 
1 de 
1 ce 
1 be 
1 ae 
1 acd 
1 cde 
1 bde 
1 bcde 
1 bce 
1 abce 
1 abcd 
1 abde 
1 acde 
2 ace b 
2 abc e 
2 abe d 
2 bcd a 
2 abd c 
2 bc ad 
2 ab cd 
2 bd ac 

result:

wrong answer expected 20 groups, found 22 groups