A. LETTERS

    Type: Default 1000ms 256MiB

LETTERS

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

###【题目描述】

给出一个 roe×colroe×col 的大写字母矩阵,一开始的位置为左上角,你可以向上下左右四个方向移动,并且不能移向曾经经过的字母。问最多可以经过几个字母。

###【输入格式】

第一行,输入字母矩阵行数 RR 和列数 SS1R,S201≤R,S≤20

接着输出 RRSS 列字母矩阵。

###【输出格式】

最多能走过的不同字母的个数。

【输入样例】

3 6
HFDFFB
AJHGDH
DGAGEH

【输出样例】

6

9.22集训班作业

Not Attended
Status
Done
Rule
OI
Problem
4
Start at
2023-9-21 18:00
End at
2023-9-28 16:40
Duration
166.7 hour(s)
Host
Partic.
1