PROJECT EULER · #0825
Chasing Game
Two cars are on a circular track of total length
They move in turn. At each turn, the moving car will advance a distance of
The chase ends when the moving car reaches or goes beyond the position of the other car. The moving car is declared the winner.
Let
For example, when
Let
You are given that
Find
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.