Problem - Click Here
I am not able to get AC in this. I am getting WA on 3 test cases.
So i landed on a github solution in which i can’t understand why that solution works.
A Github Solution - Click Here
I didn’t understood when (m <= (s - m) ) print s , i understood the rest of code but not getting why this line gets to AC.
Can anyone explain it or if you have your own approach you are most welcome.
Thanks in Advance!