Please Help with dp problem?

Правка en1, от BanazadehAria, 2019-07-01 14:06:49

Hi can anyone tell any dp approach to this?

Problem link==> http://codeforces.me/contest/1151/problem/B

I can think of a O(n*m*2^10) But it will not pass.

Thanks in advance.

Теги #help, #dynamic programming, #tle

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский BanazadehAria 2019-07-01 14:11:17 3 Tiny change: 'n*m*2^10) But it wi' -> 'n*m*2^10) dp But it wi'
en1 Английский BanazadehAria 2019-07-01 14:06:49 212 Initial revision (published)