wwfl.net
当前位置:首页 >> hDu2955 >>

hDu2955

dp[l]=min(dp[l],dp[l-E[i].m]+E[i].p); 改成 dp[l]=min(dp[l],dp[l-E[i].m]+E[i].p*(1-dp[l-E[i].m]));

网站首页 | 网站地图
All rights reserved Powered by www.wwfl.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com