PROBLEM 1367 F2

Revision en1, by codersgroup18, 2020-06-23 13:11:52

Can anyone explain the reason for three dp tables in the tutorial code of this problem https://codeforces.net/contest/1367/problem/F2

I tried to do with one dp table but didn't get the correct ans.

please explain the which dp table used for what?? THANKS IN ADVANCE

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English codersgroup18 2020-06-23 13:11:52 292 Initial revision (published)