TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Output Format

Sample Input 1

2
3 3 10
A 2
B 2
C 3
AA 10
AAA 30
ABC 60
14 8 200
M 2
I 3
R 2
A 1
O 2
E 2
C 2
L 2
F 1
V 2
Y 3
H 1
U 2
N 2
MIRACLE 100
FLUFFY 40
LOVE 100
IVY 10
VEN 30
AYE 20
HOE 10
EURO 80

Sample Output 1

Case #1: 130
Case #2: 2600

Hints

Problem Source

Migrated from old NTUJ.

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 3000 65536 131072