[826 考研初试 2018] 最大序列和
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.
时间限制: 1.0 秒
空间限制: 512 MB
题目描述
给出一个整数序列 ,其中有 个数,定义其中一个非空连续子序列 中所有数的和为 的“序列和”。
对于 的所有非空连续子序列 ,求最大的序列和。
输入格式
从标准输入读入数据。
第一行包含一个整数 。
第二行包含 个 之间的整数,表示序列中的元素。
输出格式
输出到标准输出。
输出一个数,表示最大序列和。
10
-2 6 6 5 3 0 -9 5 9 6
31
提示
你需要一个 的算法获得全部分数。
【DSA Round 0】826《数据结构》编程辅助练习
- Status
- Done
- Rule
- IOI
- Problem
- 6
- Start at
- 2025-5-5 14:00
- End at
- 2025-5-5 18:00
- Duration
- 4 hour(s)
- Host
- Partic.
- 31