help me please

Правка en1, от I_m_sfg, 2024-07-19 00:49:20

You have an array of length n and can start at any index. In one operation, you can move either left, right, or stay at your position to pick the value arr[i].After picking the value, increase all the elements in the array by 1. Find the maximum sum you can get after performing k operations.

Теги c++, dp

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский I_m_sfg 2024-07-19 00:49:20 310 Initial revision (published)