BlackBook9406's blog

By BlackBook9406, history, 4 years ago, In English

I am getting RE in the question on test case 12. Can anyone give a test case or some insights on what might be causing the issue. Link of submission

EDIT: setting limit recursion to 100000 gave stack exhaustion error in pypy3, but worked in python3. I have no idea why this occurred.

  • Vote: I like it
  • +2
  • Vote: I do not like it

| Write comment?
»
4 years ago, # |
  Vote: I like it +1 Vote: I do not like it

add this: sys.setrecursionlimit(10**5)