Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

codeislife99's blog

By codeislife99, history, 8 years ago, In English

My submission(Problem D). returns the correct answer on all test cases but gets TLE on higher recursion levels. I am unable to understand how memoization can be implemented in this case. Any help would be appreciated.

Full text and comments »

  • Vote: I like it
  • -10
  • Vote: I do not like it