Help with 125 B (Div. 1)

Revision en1, by web_developer, 2020-10-23 14:51:29

Hello Codeforces, I need help with this problem

My sol. -> I've written recursive solution and it gives TLE on tc 20

Now, I want to optimize this... How can I? Plz help.

Thanks!!

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English web_developer 2020-10-23 14:51:29 374 Initial revision (published)