Hello

I’m attempting this problem(Code: COINS). This is my solution: https://www.codechef.com/viewsolution/38366742

Can anyone tell me what I am doing wrong?

My logic is: if the sum of n/2+n/3+n/4 is bigger than n, then substitute n by that sum, otherwise, print n.