Created
May 12, 2018 13:45
-
-
Save showyou/38c4bd9f520ae66d257dc9e332e389ee 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
a, b, c, d = map(int, input().split()) | |
f = False | |
if abs(a - c) <= d: | |
f = True | |
if abs(a-b) <= d and abs(b-c) <= d: | |
f = True | |
if f: | |
print("Yes") | |
else: | |
print("No") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment