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 4 2 47
AB
5 5 2 47
CD
4 4 1 42
AA
4 4 1 42
AAAAA
1 1 5 54321
ABCDE
8 8 26 226
TOPCODER
20 20 2 47
AAAAA

Sample Output 1

2
0
20
172
0
1
373977054

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 40000 65536 200