Tle on test case 6 Problem366C

Правка en1, от BanazadehAria, 2019-06-29 12:56:13

Hi I wrote top-down dp for this problem but my code gets TLE for test case 6 I must change it to bottom-up or there is a trick to don't get TLE?

My code ==> https://codeforces.net/contest/366/submission/56265597

Problem Link ==> https://codeforces.net/contest/366/problem/C

Теги #dynamic programmign, #tle

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский BanazadehAria 2019-06-29 15:41:20 55 Tiny change: '/problem/C' -> '/problem/C\n\nAny type of help is appreciated. Thanks in advance.'
en1 Английский BanazadehAria 2019-06-29 12:56:13 309 Initial revision (published)