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 1685. Orthography

My solution in Python 3 took 0.078 seconds and 516 KB with recursion. Can you do it faster?
you can try to to it with stack instead of recursion