what is the complexity for this dp solution !!??

Правка en2, от _QWOiNYUIVMPFSBKLiGSMAP_, 2018-02-19 09:57:56

the problem is http://codeforces.com/contest/513/problem/C

the solution is http://codeforces.com/contest/513/submission/9761274

i wonder how this solution not TLE it is 1009*1009*6*6*6 which is TLE


  Rev. Язык Кто Когда Δ Комментарий
en2 Английский _QWOiNYUIVMPFSBKLiGSMAP_ 2018-02-19 09:57:56 1108
en1 Английский _QWOiNYUIVMPFSBKLiGSMAP_ 2018-02-19 09:55:56 1310 Initial revision (published)