|  | 
|  | 
| back to board | No maths needed 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 Yea, this works fine, but how to solve it fairly? | 
 | 
|