inspite getting satisfactory output my submission is denied by as Wrong answer......somebody help what is that iam not getting.
asked 23 Oct '14, 03:55 ![]()
|
Hi, Your code needs to consider the withdrawal charges as well Consider the test case: 5 5.01 Your code will evaluate to successful transaction when infact it should evaluate to false since there is insufficient balance considering the withdrawal charges. :) Hope you can fix the code now. answered 23 Oct '14, 04:08 ![]()
|
1) Read carefully the problem statement, 0<= Y <= 2000, you don't need to add the first test " 2) Your solution isn't correct for every pair (x,y) such that y-x < 0.5, you have to modify this condition " answered 23 Oct '14, 04:37 ![]()
|