dp[i]=Matn.min(dp[i-1],dp[i-2])+cost[i] n>=2 Math.min(cost[0],cost[1]) n<2
点赞 2

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务