Please read the new rule regarding the restriction on the use of AI tools. ×

Can this problem be solved using dynamic programming?

Revision en1, by TanVir17, 2023-09-28 21:06:14

https://codeforces.me/contest/1882/problem/B

I tried so many times for solving this problem using DP. But it seems impossible. Can anyone help me?

Tags dp

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English TanVir17 2023-09-28 21:06:14 203 Initial revision (published)