Help with 125 B (Div. 1)
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!!