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

Re:dp数组全部初始化为1 否则会WA 具体原因我还不知道

Posted by liang23333 at 2016-07-13 20:30:47 on Problem 2533
In Reply To:Re:dp数组全部初始化为1 否则会WA 具体原因我还不知道 Posted by:KatrineYang at 2016-07-13 20:26:57
> 因为从任意一个数开始至少长度是1.
可是我的dp[0]设为1  然后我又从头到尾取了dp的最值 这样不管其他几个是否设置为1 最终的结果一定大于等于1把

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