Need help with a dp problem featured in atcoder 76 beginner contest(Problem D)

Revision en1, by siddharth.s.atwork, 2017-10-31 00:08:45

This is the link of problem.I could not understand the editorial.Please help me out.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English siddharth.s.atwork 2017-10-31 00:08:45 213 Initial revision (published)