Created
October 8, 2016 08:07
-
-
Save RakshithNM/e41a9b31b05de8824949e6d9e92d12e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while 1: | |
x, y = raw_input().split() | |
x = float(x) | |
y = float(y) | |
if x % 5 != 0 : | |
print y | |
break | |
elif x > y: | |
print y | |
break | |
else : | |
y -= (x + 0.5) | |
print y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
works on my local interpreter, runtime NZEC on codechef platform.