文件名称:triangle
介绍说明--下载内容均来自于网络,请自行研究使用
给定一个由n行数字组成的数字三角形如下图所示。
7
3 8
8 1 0
2 7 4 4
4 5 2 6 5
试设计一个算法,计算出从三角形
的顶至底的一条路径,使该路径经过的数字总和最大。-Given an n-line numbers from the number of triangles as shown below. 7
3 8
8 1 0
2 7 4 4
4 5 2 6 5
trial design an algorithm to calculate the triangle from the top to the bottom of a path, so that the sum of the path through the largest number.
7
3 8
8 1 0
2 7 4 4
4 5 2 6 5
试设计一个算法,计算出从三角形
的顶至底的一条路径,使该路径经过的数字总和最大。-Given an n-line numbers from the number of triangles as shown below. 7
3 8
8 1 0
2 7 4 4
4 5 2 6 5
trial design an algorithm to calculate the triangle from the top to the bottom of a path, so that the sum of the path through the largest number.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
triangle.cpp