Codechef wrong answer

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

I am getting my solution correct in Online compilers but Codechef is mentioning it as Wrong answer…
So can anyone point out my mistake in this code.

Hoping for a positive Response…

For 326, your code will produce 3x100+2x10+1x5 viz. 325. It’s leaving out 1.

1 Like

Thank you so much, I will correct my code