TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Output Format

Sample Input 1

3
home
school
pub
4
school
home
pub
stadium
4
abcd
aecgh
abef
aecd
7
canada
cyprus
croatia
colombia
chile
china
cameroon

Sample Output 1

70
167
91
509

Hints

Problem Source

Migrated from old NTUJ.

TopCoder SRM

Subtasks

No. Testdata Range Score

Testdata and Limits

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