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:第一次贴代码。。In Reply To:Re:第一次贴代码。。 Posted by:2010201307 at 2012-03-24 00:04:18 > 为什么要加一个&&dp[i]<dp[j]呢?想不明白…… 举个例子,1 2 3 如果没有dp[i]<=dp[j] 则dp[0]=1;dp[1]=dp[0]+1=2;dp[2]=(dp[0]+1)+(dp[1]+1)=5 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator