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数组初始化为负无穷就会WAIn Reply To:为什么这题把DP数组初始化为负无穷就会WA Posted by:920192460 at 2012-04-22 09:45:07 > 除了dp[0]=0 其余初始化为负无穷就WA 求解 因为背包可以不装满的,初始化负无穷,就要求背包一定要装满才行,0,就可以不装满。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator