Skip to content

Instantly share code, notes, and snippets.

@whatalnk
Created December 10, 2017 02:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whatalnk/0ae3ebd29864f2157f930b6b2185e685 to your computer and use it in GitHub Desktop.
Save whatalnk/0ae3ebd29864f2157f930b6b2185e685 to your computer and use it in GitHub Desktop.
AtCoder ABC #078
x, y, z = map(int, input().split())
x -= 2 * z
x -= y
if x < 0:
print(0)
else:
print(1 + x // (y + z))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment