Strange Behavior Of Recursive DP

Revision en1, by adarsh000321, 2020-01-25 16:49:10

Hello Codeforces, I actually have two codes (69520703 and 69521121) that are doing the same thing but i just changed the order of the states and one of them is giving TLE (at test case: 78)and the other got AC. Can you please help me out. Dislike if you want but please reply :)

Tags #recursion, #dp, maximise, #strings

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English adarsh000321 2020-01-25 16:49:10 339 Initial revision (published)