TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

The PDF file of all problems can be downloaded HERE

Input Format

Output Format

Sample Input 1

1
5
a 1
ab 2
abb 3
baba 5
abbab 8

Sample Output 1

Case #1: 14

Hints

Problem Source

Migrated from old NTUJ.

Regional Chengdu 2011

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 10000 65536 200