Need help with Codeforces Round #277.5 (Div. 2) problem C

Revision en2, by M.A.H.M.O.O.D, 2016-04-15 13:19:53

Good morning, today I stumbled across this problem which I could not solve it looks really easy but I couldn't. I read the Tutorial but still didn't get it if you can explain this problem to me or at least give me the code to understand on my own I would be very greatful thanks in advance. the link to the problem is here

Tags help needed, novice coder, finding old problem, greedy, dp, implementation

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English M.A.H.M.O.O.D 2016-04-15 13:19:53 3
en1 English M.A.H.M.O.O.D 2016-04-15 13:18:36 432 Initial revision (published)