在输入格式里有一个很重要的条件,翻译中没有加上
Additionally, it is guaranteed that a0,0=0 , and ai,m−1=0 for 0≤i<n . In other words, there is no rock at RT's initial position as well as column m−1 .
翻译为:
此外,保证 a0,0=0 以及对于 0≤i<n,有 ai,m−1=0。换句话说,在 RT 的初始位置和第 m−1 行都没有石头。
希望加上这段翻译