Unable to understand and solve the problem M-candies and J-Sushi

Revision en3, by dharmenderlodhi186, 2019-02-25 21:46:20

Below are the links to both the problems. https://atcoder.jp/contests/dp/tasks/dp_m

https://atcoder.jp/contests/dp/tasks/dp_j

I have read and re-read the problems again and again but I am not able to understand how to solve these two. I have seen the submissions of other contestants also, even from that I am not able to make much sense. Can you please explain how to approach these problems and suggest similar problems that use the same concept. Thanks

Tags #dynamic-programming, #2d-dp, #atcoder, #basics

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English dharmenderlodhi186 2019-02-25 21:46:20 2 Tiny change: '/tasks/dp_k\n\nI have' -> '/tasks/dp_j\n\nI have'
en2 English dharmenderlodhi186 2019-02-25 21:08:16 124 (published)
en1 English dharmenderlodhi186 2019-02-25 21:06:48 404 Initial revision (saved to drafts)