need some help for a dp problem

Revision en1, by liveoverflow, 2019-11-22 00:00:25

I am trying to solve a problem, but getting WA.

I could not find out the reason why. Here is my code: Submission 65502511 Can you suggest any reasons? Thank you!

Tags #dp, #598, div

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English liveoverflow 2019-11-22 00:00:25 310 Initial revision (published)