Skip to content

Instantly share code, notes, and snippets.

@RakshithNM
Created October 8, 2016 08:07
Show Gist options
  • Select an option

  • Save RakshithNM/e41a9b31b05de8824949e6d9e92d12e1 to your computer and use it in GitHub Desktop.

Select an option

Save RakshithNM/e41a9b31b05de8824949e6d9e92d12e1 to your computer and use it in GitHub Desktop.
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
@RakshithNM
Copy link
Copy Markdown
Author

works on my local interpreter, runtime NZEC on codechef platform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment