0%

Problem 81


Problem 81


Path sum: two ways

In the 5 by 5 matrix below, the minimal path sum from the top left to the bottom right, by only moving to the right and down, is indicated in bold red and is equal to 2427.

(131673234103182019634296515063080374642211153769949712195680573252437331)

Find the minimal path sum from the top left to the bottom right by only moving right and down in matrix.txt (right click and “Save Link/Target As…”), a 31K text file containing a 80 by 80 matrix.


路径和:两个方向

在如下的5×5矩阵中,从左上方到右下方始终只向右或向下移动的最小路径和为2427,由标注红色的路径给出。

(131673234103182019634296515063080374642211153769949712195680573252437331)

在文本文件matrix.txt中包含了一个80×80的矩阵,求从该矩阵的左上方到右下方始终只向右或向下移动的最小路径和。


Gitalking ...