here is the link to the problem line :- https://codeforces.me/contest/569/problem/A i don't get it what is x in this question my uderstanding s is distance speed is 1-(q-1)/q >> (q-q+1)/q >> 1/q then time = s/(1/q) >> s*q so why is it the distance increase rate after s dist help many people don't react to my blogs it will be big help