IZHO 2014 — Problem E

Revision en1, by radoslav11, 2015-11-01 23:26:33

Hello codeforces,

I was solving IZHO problems from past years but I couldn't solveIZHO 201problem E — "K blocks" (link; the second problem). I wrote the O( N * N * K ) dp solution, but I'm not sure how to reduce it to O( N * K ). I tought of Convex hull trick, but unfortunately i don't know how to apply it.

So can someone share his solution? Thanks ;)

Tags izho 2014, izho, dp, convex hull optimization

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English radoslav11 2015-11-01 23:26:33 612 Initial revision (published)