TopCoder

Thumb hsnu2016
Adrien Wu
$ \begin{align} AC \times 2^9 \\ \text{New TIOJ ?} \end{align} $

User's AC Ratio

100.0% (87/87)

Submission's AC Ratio

61.5% (107/174)

Description

Input Format

Output Format

Sample Input

Sample Input #1:

5
A33X5
30X21
11X11
00310
1120B

Sample Input #2:

3
AX5
X4X
11B

Sample Output

Sample Output #1:

10

Sample Output #2:

X

Hints

Problem Source

原TIOJ1196 / TOI2004初選(prob 2)。

Subtasks

For Testdata: 0 ~ 0, Score: 16
For Testdata: 1 ~ 1, Score: 16
For Testdata: 2 ~ 2, Score: 16
For Testdata: 3 ~ 3, Score: 16
For Testdata: 4 ~ 4, Score: 16
For Testdata: 5 ~ 5, Score: 20
No. Time Limit (ms) Memory Limit (KiB) Output Limit (KiB)
0 1000 65536 262144
1 1000 65536 262144
2 1000 65536 262144
3 1000 65536 262144
4 1000 65536 262144
5 1000 65536 262144