How to solve this dp problem?

Revision en1, by cote, 2020-12-05 05:47:56

I am struggling with this problem: https://dunjudge.me/analysis/problems/896/

It is suggested on cp-algorithms.com that convex hull trick can solve this problem. I read this problem a month ago and now come back to it I still cannot solve it.

Can anyone help me with this, Thanks in advance.

Tags #asking, #dp, #convex hull trick

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English cote 2020-12-05 05:47:56 327 Initial revision (published)