ATM: need help in a solution

https://www.codechef.com/viewsolution/18956380
wrong answer is displayed on the screen. can’t find the bug in my code

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

There you go with an AC Solution.

Do click the tick button, to accept the answer!

You have taken input in the wrong order. First input is integer and second is float and your code is
scanf("%f%d",&y,&x);
change this line to
scanf("%d%f",&x,&y);
It will be accepted.