Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
哪位大神为小弟解释下 我都不知道为此贡献了多少wa了在确定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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator