DP problem from today's codeforces round DIV 3

problelm link any one can help me with the dp solution of this problem… thanks for the help…

See official Editorial with explanation and c++ code. This might help you to get understand better.

Also you can check others submissions too by following simple two steps.

  1. click on this link
    Status - Codeforces Round 674 (Div. 3) - Codeforces

  2. Apply this filter ( available on below left of the page )
    status

  3. Click on any submission to see the code

1 Like