Hello,
Link to problem: USACO
Link to solution: Contest Results
on this line of code for solution:
lx = max(lx, (-c + b * d + (b - a - 1)) // (b - a))
shouldn’t this be lx = max(lx, (-c + b * d) // (b - a)) ?
How did they derive (b - a - 1)? I’m confused
Thanks