Блог пользователя BlackBook9406

Автор BlackBook9406, история, 6 лет назад, По-английски

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.

  • Проголосовать: нравится
  • +2
  • Проголосовать: не нравится

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

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