其他分享
首页 > 其他分享> > [CodeForces] D. Make The Fence Great Again

[CodeForces] D. Make The Fence Great Again

作者:互联网

Problem

 

Each fence is increased at most 2 times, so dp[i][j] is the min cost to make A[0, i] great with the last fence A[i] increased j times.

The answer is min of dp[n - 1][].

 

标签:Again,Great,increased,fence,min,Make,times,dp
来源: https://www.cnblogs.com/lz87/p/15816194.html