$dp[i][m]$表示前$i$使用$m$次阻拦 $w[i]$,$d[i]$表示$i$时刻贪心的最大红包的价值,时间 转载于:https://www.cnblogs.com/lxzl/p/11143759.html