QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#505401#5775. Mixing Bowlsxiaowuc114 ✓0ms3812kbC++171.7kb2024-08-05 05:07:202024-08-05 05:07:21

详细

Subtask #1:

score: 5
Accepted

Test #1:

score: 5
Accepted
time: 0ms
memory: 3564kb

input:

10
3
SOUP 3 STOCK salt water
STOCK 2 chicken VEGETABLES
VEGETABLES 2 celery onions
5
MILKSHAKE 4 milk icecream FLAVOR FRUIT
CHOCOLATE 2 cocoa syrup
FLAVOR 2 SPICES CHOCOLATE
FRUIT 2 banana berries
SPICES 2 nutmeg cinnamon
1
A 2 aa ab
2
A 2 B aa
B 2 ba bb
3
B 2 C A
A 2 aa ab
C 2 ca cb
8
F 2 H A
A 2 D...

output:

Case #1: 2
Case #2: 3
Case #3: 1
Case #4: 2
Case #5: 3
Case #6: 4
Case #7: 4
Case #8: 4
Case #9: 2
Case #10: 10

result:

ok 10 lines

Subtask #2:

score: 9
Accepted

Test #2:

score: 9
Accepted
time: 0ms
memory: 3812kb

input:

10
15
C 2 G A
A 2 O F
B 2 ba bb
D 2 da db
E 2 H J
F 2 M B
G 2 K E
H 2 ha hb
I 2 ia ib
J 2 ja jb
K 2 I L
L 2 la lb
M 2 ma mb
N 2 na nb
O 2 N D
31
J 2 X A
A 2 AA D
AA 2 K I
AB 2 aba abb
AC 2 aca acb
AD 2 ada adb
AE 2 aea aeb
B 2 ba bb
C 2 U B
D 2 Q H
E 2 AC AE
F 2 E P
G 2 ga gb
H 2 M N
I 2 Z T
K 2 G R...

output:

Case #1: 5
Case #2: 6
Case #3: 10
Case #4: 11
Case #5: 8
Case #6: 11
Case #7: 6
Case #8: 8
Case #9: 2
Case #10: 10

result:

ok 10 lines

Extra Test:

score: 0
Extra Test Passed