文件名称:Maximum sum of subarray
介绍说明--下载内容来自于网络,使用问题请自行百度
题目描述:给定一个数组a[0,...,n-1],求其最大子数组(长度>=1)和 输入描述:第一行一个整数n(1<=n<=5000),然后依次输入n个整数(每个整数范围[-5000, 5000]) 输出描述:输出一个整数表示最大子数组和 样例输入:5 1 -1 1 1 -1 样例输出:2(Topic descr iption:Given an array a[0,..., n-1], find its maximum sum of subarray (length >=1) Input descr iption:The first row is an integer n (1<=n<=5000), and then n integers are entered sequentially (each integer range [-5000, 5000]) Output descr iption:Output an integer representing the maximum subarray sum Sample input :5 1 -1 1 1 -1 Sample output:2)
相关搜索: 最大子数组和
(系统自动生成,下载前可以参看下载内容)
下载文件列表
| 文件名 | 大小 | 更新时间 |
|---|---|---|
| Lab-HM6 | ||
| Lab-HM6\6-1.cpp | 422 | 2017-11-13 |
| Lab-HM6\Debug | ||
| Lab-HM6\Debug\Lab-HM6.tlog | ||
| Lab-HM6\Lab-HM6.vcxproj | 5702 | 2017-11-13 |
| Lab-HM6\Lab-HM6.vcxproj.filters | 944 | 2017-11-13 |
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
