摘要:
题目描述 In this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swapping two ad 阅读全文
posted @ 2018-07-25 16:20
oc_co
阅读(190)
评论(0)
推荐(1)
摘要:
题目描述 输入一个长度为n的整数序列,从中找出一段不超过m的连续子序列,使得整个序列的和最大。例如 1,-3,5,1,-2,3当m=4时,S=5+1-2+3=7当m=2或m=3时,S=5+1=6 输入 第一行两个数n,m(n,m<=300000)第二行有n个数,要求在n个数找到最大子序和 输出 一个 阅读全文
posted @ 2018-07-25 16:17
oc_co
阅读(285)
评论(0)
推荐(1)

浙公网安备 33010602011771号