I was solving a problem and it led to a sub problem which goes like:
given 10^9>=A,B>0, minimise: 2*x+B%(A+x) , x>=0
Need help in a problem
I was solving a problem and it led to a sub problem which goes like:
given 10^9>=A,B>0, minimise: 2*x+B%(A+x) , x>=0