Help needed in figuring out how to solve Codeforces Round #385 (Div. 2).E hongcow buys a deck of cards

Revision en1, by M.A.H.M.O.O.D, 2016-12-23 17:10:23

Hi everyone I've been trying to solve 744C - Hongcow Buys a Deck of Cards for a while now but still I haven't figured it out yet...

I've tried reading the Tutorial and reading a few codes but that didn't help much...

I will be very grateful if someone could please explain how to solve it in a detailed manner...

Thank you for reading.

:)

Tags dp, help, stuck in a problem, sad

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English M.A.H.M.O.O.D 2016-12-23 17:10:23 431 Initial revision (published)