字母矩阵
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.
【题目描述】
给出一个row×col的大写字母矩阵,一开始的位置为左上角,你可以向上下左右四个方向移动,并且不能移向曾经经过的字母。问最多可以经过几个字母。
【输入】
第一行,输入字母矩阵行数R和列数S,1≤R,S≤20。
接着输出R行S列字母矩阵。
【输出】
最多能走过的不同字母的个数。
3 6
HFDFFB
AJHGDH
DGAGEH
6
C++周日1330班级测试
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 4
- Start at
- 2024-12-1 13:30
- End at
- 2024-12-1 15:00
- Duration
- 1.5 hour(s)
- Host
- Partic.
- 1