Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

ATM problem - What test cases are failing in this case?

$
0
0

In the ATM Problem I submitted this code in Python 2.7

def p():
    draw, balance = map (float,raw_input().split())

    if draw % 5 == 0 and draw <= (balance + 0.5):
        balance -= (draw + 0.5)

    print "%.2f" %balance

p()

What test cases is this failing? This is my first time with online judging and I am not sure what kind of problem this code is facing.


Viewing all articles
Browse latest Browse all 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>