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 |
Re:dp数组全部初始化为1 否则会WA 具体原因我还不知道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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator