Can this problem be solved using dynamic programming?

Правка en1, от TanVir17, 2023-09-28 21:06:14

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

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

Теги dp

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский TanVir17 2023-09-28 21:06:14 203 Initial revision (published)