一个DP,DP还是要靠积累,输出格式略微坑爹 ...
分类:
其他好文 时间:
2017-03-09 17:15:44
阅读次数:
141
题目链接:http://acm.split.hdu.edu.cn/showproblem.php?pid=1003 ...
分类:
其他好文 时间:
2016-10-22 17:48:55
阅读次数:
120
Max Sum Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 208286 Accepted Submission(s): 48751 Prob ...
分类:
其他好文 时间:
2016-05-07 23:43:18
阅读次数:
250
Max Sum Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 207874 Accepted Submission(s): 48646 Prob ...
分类:
其他好文 时间:
2016-05-05 00:41:40
阅读次数:
199
dp经典题,这题一年前就做过了,主要在确定begin和end有技巧,题目要求输出第一个sub,所以begin要尽量左移,end尽量右移 #include <iostream> #include <cstdio> #include <cmath> #include <cstring> #include ...
分类:
编程语言 时间:
2016-04-04 22:41:58
阅读次数:
228
DescriptionGiven a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the ma...
分类:
其他好文 时间:
2015-08-15 22:48:01
阅读次数:
130
DescriptionGiven a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the ma...
分类:
其他好文 时间:
2015-08-14 21:19:06
阅读次数:
134
Max Sum
Problem Description
Given a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the max sum in this sequence is...
分类:
其他好文 时间:
2015-08-14 19:06:00
阅读次数:
118
A -最大子段和Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescriptionGiven a sequence a[1],a[2],a[3]......a[n], your job is to calcula...
分类:
其他好文 时间:
2015-08-10 22:05:33
阅读次数:
123
#include"stdio.h"int main(){ int nn; scanf("%d",&nn); for(int n=1;nmax){ max=temp; end=i; begin=...
分类:
其他好文 时间:
2015-08-08 16:16:48
阅读次数:
84