I am new to python, and trying my luck on some easy problems first. I have checked my source code for various inputs (problem code HS08TEST, link: http://www.codechef.com/problems/HS08TEST) but unable to find any problem but still it shows runtime error on submission. Please help guys. Here’s my code:
import sys
withdraw, balance = map(float, sys.stdin.readline().split())
print ("%.2f" % balance) if int(withdraw)%5 != 0 or balance < (withdraw + 0.5) else ("%.2f" % (balance - withdraw - 0.5))