HDU1003 改错

[复制链接]
查看11 | 回复0 | 2010-5-11 13:19:43 | 显示全部楼层 |阅读模式
大家帮忙来找茬。有能长期跟我交流的更好(百度hi留言下)
hdu1003,总是说我wa。我自己试的数据都可以啊~~(麻烦明示哪边要修改)
#include "stdio.h"
#include "stdlib.h"
int SequenceSum(int *a,long n,int &start,int &end)
{
int ThisSum = 0,MaxSum = 0,j;
start = 1,end = 1;
for(j = 0;jMaxSum){
MaxSum = ThisSum;
end = j+1;
}
else if(ThisSum20) scanf("%d",&T);
for(i = 1;iMaxSum){ MaxSum = ThisSum; start=sign; end = j+1;}if(ThisS
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行