Dynamic Programming and Time Limit Exceeded

Revision en1, by krish2004, 2024-07-01 19:58:48

I cant understand why https://codeforces.net/contest/1987/submission/268352950 is not giving TLE but this is https://codeforces.net/contest/1987/submission/268340248. Both have same approach for the same question.

Tags tle, dp

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English krish2004 2024-07-01 19:58:48 257 Initial revision (published)