数塔问题
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.
说明
有如下所示的数塔,要求从底层走到顶层,若每一步只能走到相邻的结点,则经过的结点的数字之和最大是多少?

输入格式
输入数据首先包括一个整数整数N(1 <= N <= 100),表示数塔的高度,接下来用N行数字表示数塔,其中第i行有个i个整数,且所有的整数均在区间[0,99]内。
输出格式
从底层走到顶层经过的数字的最大和是多少?
样例
5
7
3 8
8 1 0
2 7 4 4
4 5 2 6 530
桂北第二届“科协杯”--热身赛
- Status
- Done
- Rule
- IOI
- Problem
- 6
- Start at
- 2025-3-21 8:45
- End at
- 2025-3-25 12:45
- Duration
- 100 hour(s)
- Host
- Partic.
- 67