Getting TLE in DP question

Правка en1, от iCanCodeBro, 2017-08-06 10:00:34

Hi, this is my first blog here. I've been trying to solve this question for a day.

Any idea or help greatly appreciated.

My solutions ->

DP soln, TLE

DP+Bitmask, WA

TC Input (To check if TLE)

TC Output

Thanks.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский iCanCodeBro 2017-08-06 10:19:43 54
en1 Английский iCanCodeBro 2017-08-06 10:00:34 460 Initial revision (published)