dp[i]=Math.min(dp[k-1]+num[0]+num[k],dp[k-2]+num[k]+2*num[1]+num[0])
点赞 评论

相关推荐

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