ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1501. Sense of Beauty

If you have Runtime Error with Python solution at 8-19 test
Posted by iron_orc 24 Jan 2022 03:27
If using recursive algorithm increase recursion depth limit at least 4000. For my algo 2000 was not enough

import sys
sys.setrecursionlimit(4000)