从一个点走到另一个点,每一步只能上下左右移动。求最少步数。 这是一道专题刷题变式。
输入网格。
输出最少步数。
1≤n,m≤501\le n,m\le 501≤n,m≤50
3 3 S.. .#. ..T
4
使用您的 www.mathcoding.online 通用账户