Runtime Errror in Uncle Bogdan and Country Happiness

Revision en2, by BlackBook9406, 2020-08-02 22:52:48

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.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English BlackBook9406 2020-08-02 22:52:48 138 Tiny change: '8714320)\nEDIT:\ns' -> '8714320)\n\nEDIT:\ns'
en1 English BlackBook9406 2020-08-02 11:38:40 311 Initial revision (published)