Help me WA (ATM)

solution : https://www.codechef.com/viewsolution/30856951

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