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 1150. Page Numbers

No maths needed
Posted by mouse_wireless2 30 Apr 2018 20:22
Precompute the results for ~200 numbers (at regular intervals) and hardcode them.
Then you can just bruteforces starting from the closest precomputed number.
Re: No maths needed
Posted by 👾_challenger128_[PermSU] 26 Oct 2020 20:21
Yea, this works fine, but how to solve it fairly?