Help me WA (ATM)

solution : CodeChef: Practical coding for everyone

hey, you have forgotten the case when account balance is equal to withdraw amount , in that case your output is -0.5 but it is a invalid transaction.
here is your code with little transformation

thanks i got it.

1 Like