My Code for the Beginner’s ATM problem in Python 2.7 :

X,Y=raw_input().split(’ ‘) #Comment :X,Y=input().split(’ ') or X,Y=raw_input().split( )

X=int(X)

Y=float(Y)

if(X<Y and X%5==0):

print("%.2f" %(Y-X-0.50))

elif(X<Y and X%5!=0):

print("%.2f" %Y)

else:

print("%.2f" %Y)

My code for Beginner’s ATM problem in python 3.6 :

import sys

line=sys.stdin.readline()

X,Y=line.split(’ ')

X=int(X)

Y=float(Y)

if(X<Y and X%5==0):

print("%.2f" %(Y-X-0.50))

elif(X<Y and X%5!=0):

print("%.2f" %Y)

else:

print("%.2f" %Y)

Any combination of input() / raw_input() or sys.stdin doesn’t seem to work on the codechef ide where as all of them work on python compiler anywhere else. Can anyone tell me how is everyone else submitting solutions for python problems on codechef, because I am not able to since few days.