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 1510. Order

Solving using Python 3.8 x64
Posted by wnik 11 Nov 2020 00:10
Hi people.
It looks like there is no one solution which used Python 3.8 x64. I use a linear algorithm (one pass, actually) but I still get TLE21. Are there any options for python or should I just use another language?
Thanks.
Re: Solving using Python 3.8 x64
Posted by wnik 11 Nov 2020 00:17
No worries, Boyer-Moore works well. My first approach was a bitwise (digit) based. It's a one pass as well, but a bit slower.