Help needed to optimise the solution for Heaters (1066B)

Правка en1, от rohit_1402, 2020-04-28 22:34:05

[submission:78417751]I have formed the recursive solution for the problem Heaters https://codeforces.me/contest/1066/problem/B. In order to optimise the solution I am trying to use memoization approach but stuck in defining the state for dp.

My solution — https://codeforces.me/contest/1066/submission/78417751

Thanks in advance!

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский rohit_1402 2020-04-28 22:34:05 402 Initial revision (published)