July lunchtime maximum candies problem

https://www.codechef.com/viewsolution/36021671
Any help will be appreciated

Consider the case : x > y
for n = 1 & m = 1
it should return x ; your code returns y.

1 Like

That helps, thanks a lot for pointing mistake, much appreciated.

https://www.codechef.com/viewsolution/36022589

accepted solution

1 Like