Help needed in Problem 321B

Правка en1, от ALogB, 2020-11-19 12:30:05

I am solving this problem got the greedy solution but interested to solve this via dp as well can someone explain the dp solution in more better way than editorial ( i am unsatisfied with editorial).

Problem Link -> https://codeforces.net/problemset/problem/321/B

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский ALogB 2020-11-19 12:30:05 293 Initial revision (published)