Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

哪位大神为小弟解释下 我都不知道为此贡献了多少wa了

Posted by fantasyfy at 2011-02-22 15:36:20 on Problem 1821
在确定begin的时候为什么
if(iEnd - aL[i] > 0)
{
	if(aP[i] * (aL[i] - (iEnd - iBegin)) + aDp[iEnd - aL[i] - 1] > aDp[iBegin - 1])
	{
		iBegin = iEnd - aL[i];
	}
}
是对的
而
if(iEnd - aL[i] > 0)
{
	if(aP[i] * (aL[i] - (iEnd - aS[i]) > aDp[aS[i] - 1] - aDp[iEnd - aL[i] - 1])
	{
		iBegin = iEnd - aL[i];
	}
}	
就是wa				}

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator