How to solve using DP?

Revision en1, by Ibrahim-Elsayed, 2023-08-20 09:34:02

This problem has DP as a tag in it, I was able to solve it without using DP but since I don't mind getting better at DP (xD) I would like to know how to solve it using DP. I would appreciate your help, thanks in advance.

Tags dp, help, div2

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Ibrahim-Elsayed 2023-08-20 09:34:02 294 Initial revision (published)