Python run time error on recursive function

Правка en1, от dsanurag520, 2024-02-21 22:25:01

I am fairly new to codeforces. I wrote a recursive dp using python but I got a run time error on the 9th test case when the input is big. I am not able to figure out the error

For context, problem : problem my solution : solution

I even set recursion limit to 100000, but it doesnt seem to get rid of the error. Any help would be appreciated!

Теги python, recursion

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский dsanurag520 2024-02-21 22:25:01 502 Initial revision (published)