Help with a DP problem!

Revision en1, by SmellyCat, 2018-03-29 12:03:51

Can someone please explain this problem's solution?

This seems to me like a DP problem but I am not able to understand how to proceed.

Thanks in advance.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English SmellyCat 2018-03-29 12:03:51 216 Initial revision (published)