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
2 3 3
AA
.A
.A
...
B..
BBB
..
.C
CC
3 3 1
.A.
A.A
.A.
BBB
CCC
2 3 3
AA
.A
AA
BBB
B..
BBB
CC
C.
CC

Sample Output 1

5
4
11

Hints

Problem Source

NPSC 2012 高中組決賽 pH

Subtasks

No. Testdata Range Constraints Score
1 0 範例測資 0
2 0~1 無額外限制 100

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 5000 1048576 1048576 1 2
1 5000 1048576 1048576 2