Problem:


  MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});

Circle in a Rectangle

  Write a program which reads a rectangle and a circle, and determines whether the circle is arranged inside the rectangle. As shown in the following figures, the upper right coordinate $(W, H)$ of the rectangle and the central coordinate $(x, y)$ and radius $r$ of the circle are given.

Input

  Five integers $W$, $H$, $x$, $y$ and $r$ separated by a single space are given in a line.

Output

  Print "Yes" if the circle is placed inside the rectangle, otherwise "No" in a line.

Constraints

  
$ -100  \leq x, y \leq 100$

  
$ 0  < W, H, r \leq 100$

Sample Input 1

5 4 2 2 1

Sample Output 1

Yes

Sample Input 2

5 4 2 4 1

Sample Output 2

No



Sample input:
5 4 2 2 1


Sample output:
Yes

Submission status: Accepted

Solution code:
base = input("")
term = base.split(' ')
W = int(term[0])
H = int(term[1])
x = int(term[2])
y = int(term[3])
r = int(term[4])

if((x - r >= 0 and W >= (x + r))
    and (y - r >= 0 and H >= (y + r))):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
input_list = list(map(int, input().split(" ")))
w = input_list[0]
h = input_list[1]
x = input_list[2]
y = input_list[3]
r = input_list[4]

x_max = x + r
x_min = x - r
y_max = y + r
y_min = y - r

if x_max <= w and y_max <= h and x_min >= 0 and y_min >= 0 :
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
W, H, x, y, r = list(map(int, input().split()))
if r <= x <= W-r and r <= y <= H-r:
    print ("Yes")
else:
    print ("No")

Submission status: Accepted

Solution code:
W,H,x,y,r=map(int,input().split())
if (x-r)>=0 and (x+r)<= W and (y-r)>=0 and (y+r)<=H:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int, input().split())

if (x-r) >= 0 and y-r >= 0 and x+r <= W and y+r<= H:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
W,H,x,y,r=map(int,input().split(" "))

if x+r<=W and y+r<=H and x-r>=0 and y-r>=0 :
    print("Yes")
else :
    print("No")

Submission status: Accepted

Solution code:
W,H,x,y,r = map(int,input().split())
if (x-r)>=0 and (x+r)<=W:
    if (y-r)>=0 and (y+r)<=H:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Submission status: Accepted

Solution code:
l = input().split()
W = int(l[0])
H = int(l[1])
x = int(l[2])
y = int(l[3])
r = int(l[4])

if x <= W - r and x >= r and y <= H - r and y >= r:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
W,H,x,y,r = map(int,input().split())
e = 'Yes'
n = 'No'
if x+r > W or x-r < 0:
    print(n)
elif y+r > H or y-r < 0:
    print(n)
else:
    print(e)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-   
W, H, x, y, r = map(int, input().split())
x1 = x + r
x2 = x - r
y1 = y + r
y2 = y - r
if x1 <= W and x2 >= 0 and y1 <= H and y2 >= 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import sys

def main():
  input = sys.stdin.readline().rstrip

  W, H, x, y, r = map(int, input().split())
  if x - r < 0 or W < x + r or y - r < 0 or H < y + r:
    print('No')
  else:
    print('Yes')

if __name__ == '__main__':
  main()

Submission status: Accepted

Solution code:
W,H,x,y,r = map(int,input().split())

w1 = x+r
w2 = x-r
h1 = y+r
h2 = y-r

if w1 <= W and h1 <= H and w2 >= 0 and h2 >= 0:
    print("Yes")

else:
    print("No")

Submission status: Accepted

Solution code:
w,h,x,y,r= map(int, input().split())
if x+r<=w and x-r>=0:
    if y+r<=h and y-r>=0:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Submission status: Accepted

Solution code:
W,H,x,y,r=map(int,input().split())
if W<x+r:
    print('No')
elif 0>x-r:
    print('No')
elif H<y+r:
    print('No')
elif 0>y-r:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
X = list(map(int, input().split()))

W = X[0]
H = X[1]
x = X[2]
y = X[3]
r = X[4]


if r <= x <= W-r and r <= y <= H-r:
    print("Yes")

else:
    print("No")

Submission status: Accepted

Solution code:
lt = list(map(int,(input().split())))

if lt[0]>lt[2] and lt[1]>lt[3] and lt[4]<=lt[2] and lt[4]<=lt[3] :
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int, input().split())
yoko = r <= x <= W - r
tate = r <= y <= H - r
if yoko and tate:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
w, h, x, y, r = map(int, input().split())

if (x-r) >=0 and (x+r) <= w and (y-r) >= 0 and (y+r) <= h:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import sys
W,H,x,y,r = map(int, input().split()) 
if(x-r>=0 and x+r<=W and y-r>=0 and y+r<=H):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
W,H,X,Y,R=map(int, input().split())
if W-R>=X>=R:
	if H-R>=Y>=R:
		print("Yes")
	else:
		print("No")
else:
	print("No")

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int,input().split())
if r <= x <= W - r and r <= y <= H - r:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
w, h, x, y, r = map(int, input().split(' '))
if w-r >= x >= r and h-r >= y >= r:
    print("Yes")
    pass
else:
    print("No")
    pass

Submission status: Accepted

Solution code:
i = list(map(int, input().split()))
def in_retangle(w,h,x,y,r):
    if r<=y and y<=h-r and r<=x and x<=w-r:
        print("Yes")
    else:
        print("No")
    
in_retangle(i[0],i[1],i[2],i[3],i[4])

Submission status: Accepted

Solution code:
W,H,x,y,r=map(int,input().split())
if x>=r and x<=W-r and y>=r and y<=H-r:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
def test():
    li = list(map(int, input().split()))
    w = li.pop(0)
    h = li.pop(0)
    if w < li[0] + li[2] or h < li[1] + li[2] or li[0] <= 0 or li[1] <= 0:
        print('No')
    else:
        print('Yes')

if __name__ == '__main__':
    test()

Submission status: Accepted

Solution code:
W, H, x, y ,r = map(int, input().split())
print("Yes" if r <= x <= W - r and r <= y <= H - r else "No")

Submission status: Accepted

Solution code:
nums = input("").split()
nums = list(map(int, nums))
w, h, x, y, r = nums

if x >= r and y >= r:
    if x+r <= w and y+r <= h:
        print("Yes")
    else:
        print("No")

else:
    print("No")

Submission status: Accepted

Solution code:
W,H,x,y,r = map(int,input().split())
Flag = True
if r > x or r > y:
    Flag  = False
elif W - x < r or H - y < r:
    Flag = False
print('Yes' if Flag else 'No')

Submission status: Accepted

Solution code:
w,h,x,y,r = map(int, input().split())
answer = "No"

if(x<=(w-r) and x>=(r) and y<=(h-r) and y>=(r)):
    answer = "Yes"

print(answer)

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int, input().split())

#xまたはyがマイナスの場合、No
if x < 0 or y < 0 :
    print("No")

#(x, y)が長方形上、もしくは長方形の外にある場合、NO
elif W <= x or H <= y :
    print("No")

elif x < W and y < H and r <= x and r <= y :
    print("Yes")

else :
    print("No")

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int, input().split())

if x - r >= 0 and y - r >= 0:
    if x + r <= W and y + r <= H:
        print('Yes')
    else:
        print('No')
else:
    print('No')

Submission status: Accepted

Solution code:
i = input()
W,H,x,y,r = map(int, i.split())
if (x-r) >= 0 and (x+r) <= W and (y-r) >= 0 and (y+r) <= H:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
w, h, x, y, r = map(int, input().split())

if x - r >= 0 and x + r <= w and y - r >= 0 and y + r <= h:
    op = "Yes"
else:
    op = "No"

print(op)

Submission status: Accepted

Solution code:
W,H,x,y,r=input().split()
W,H,x,y,r=[int(W),int(H),int(x),int(y),int(r)]
result="Yes"
if x+r>W or x-r<0 :
    result="No"
if y+r>H or y-r<0 :
    result="No"
print(result)

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int, input().split())

if (r <= x <= W-r) and (r <= y <= H-r):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
W,H,x,y,r = map(int,input().split())
if 0<=x-r<=W and 0<=x+r<=W and 0<=y-r<=H and 0<=y+r<=H:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
W,H,x,y,r = map(int,input().split())

if (x-r >= 0 and x+r <= W) and (y-r >= 0 and y+r <= H):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
w,h,x,y,r = map(int,input().split())
if 0<=x-r and r+x<=w and y-r>=0 and y+r<=h: print('Yes')
else: print('No')

Submission status: Accepted

Solution code:
W, H, x, y, r = (int(x) for x in input().split())
if (x - r < 0 or W < x + r ): print("No")
elif (y - r < 0 or H < y + r): print("No")
else: print("Yes")

Submission status: Accepted

Solution code:
l = list(map(int, input().split()))
W = l[0]
H = l[1]
x = l[2]
y = l[3]
r = l[4]

if (r <= x <= W - r) and (r <= y <= H - r):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
# W , H, x, y and r
W, H, x, y, r = map(int, input().split())

min_x = x - r
max_x = x + r
min_y = y - r
max_y = y + r

if (min_x >= 0 and min_y >= 0) and (max_x <= W and max_y <= H):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
W,H,x,y,r = map(int,input().split())

if r <= x <= W-r and r <= y <= H-r:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
W,H,x,y,r = input().split(" ")
W = int(W)
H = int(H)
x = int(x)
y = int(y)
r = int(r)

outside = False
if x-r < 0:
    outside = True
if y-r < 0:
    outside = True
if x+r > W:
    outside = True
if y+r > H:
    outside = True

if outside:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
w, h, x, y, r = map(int, input().split())
if x-r<0 or y-r<0:
    print("No")
elif x+r>w or y+r>h:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
i = input()
W,H,x,y,r = map(int,i.split())
if r <= x <= (W - r) and r <= y <= (H - r):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int, input().split())
if (x-r>=0 and x+r<=W and y-r>=0 and y+r<=H):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int, input().split())

if x - r < 0 or W < x + r or y - r < 0 or H < y + r:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
w, h, x, y, r = map(int, input().split())

if x >= r and y >= r and x <= w-r and y <= h - r:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
w, h, x, y, r = map(int, input().split())
left = x - r
right = x + r
bottom = y - r
top = y + r
result = 'No'
if left >= 0 and right <= w and bottom >= 0 and top <= h:
	result = 'Yes'
print(result)

Submission status: Accepted

Solution code:
w, h, x, y, r = map(int,input().split())
print(['No','Yes'][r <= x <= w - r and r <= y <= h - r])

Submission status: Accepted

Solution code:
num = input("").split()

W =int(num[0])
H =int(num[1])
x =int(num[2])
y =int(num[3])
r =int(num[4])

if x >= r and (x + r) <= W and y >= r and (y + r) <= H:
    print("Yes")
    
else:
    print("No")

Submission status: Accepted

Solution code:
w, h , x, y, r = map(int, input().split())
print("Yes" if x-r >= 0 and x+r <= w and y-r >= 0 and y+r <= h else "No")

Submission status: Accepted

Solution code:
W,H,x,y,r=map(int,input().split())
if x-r>=0 and y-r>=0 and x+r<=W and y+r<=H:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
w,h,x,y,r = map(int,input().split())
if x >= r and w-r >= x:
    if y >= r and h-r >= y:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Submission status: Accepted

Solution code:
w, h , x, y, r = map(int, input().split())
# x - r が0 より小さい、または、x + r がW より大きいならばNoと判定。

if x - r < 0 or x + r > w:
  print("No")
# x - r が0 以上、かつ、x + r がW 以下ならばYesと判定。
elif y - r < 0 or y + r >h:
  print("No")
elif x - r >= 0 and x + r <= w:
  print("Yes")
elif y - r >= 0 and y + r <= h:
  print("Yes")

Submission status: Accepted

Solution code:
W,H,x,y,r = map(int,input().split())
if r <=x<=W-r and r<=y<=H-r:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
w,h,x,y,r = map(int, input().split())
if (x-r < 0) | (x+r > w) | (y-r < 0) | (y+r > h):
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
w,h,x,y,r = map(int,input().split())
print ("Yes") if 0 <= x-r and 0 <= y-r and x+r <= w and y+r <= h else print ("No")

Submission status: Accepted

Solution code:
w,h,x,y,r=map(int,input().split())
if x-r<0 or x+r>w:
    print('No')
elif y-r<0 or y+r>h:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
w, h, x, y, r = map(int, input().split())

flag = True

if (x-r) < 0 or (y-r) < 0 or (x+r) > w or (y+r) > h:
    flag = False

if flag:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
w, h, x, y, r = map(int, input().split())
if r <= x <= w - r and r <= y <= h - r:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
w, h, x, y, r = map(int, input().split())
if 0 <= (x - r) and (x + r) <= w and 0 <= (y - r) and (y + r) <= h:
        print('Yes')
else:
        print('No')

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int, input().split())

flg = True

if x + r > W:
    flg = False

if y + r > H:
    flg = False

if x - r < 0:
    flg = False

if y - r < 0:
    flg = False

if flg:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
W,H,x,y,r = map(int,input().split())

if x > 0 and y > 0:
    if (x - r) >= 0 and (x + r) <= W:
        if (y - r) >= 0 and (y + r) <= H:
            print('Yes')
        else:
            print('No')
    else:
        print('No')
else:
    print('No')

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int, input().split())
if W > 0 and H > 0 and  x > 0 and  y > 0 and  r > 0:
    if x + r <= W:
        if y >= r and y + r <= H:
            print('Yes')
        else:
            print('No')
    else:
        print('No')
else:
    print('No')

Submission status: Accepted

Solution code:
w, h, x, y, r = map(int, input().split())

if r <= x <= (w-r) and r <= y <= (h-r):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int, input().split())
if x - r < 0 or x + r > W:
    print("No")
elif y - r < 0 or y + r >H:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int, input().split())
if x - r >= 0 and x + r <= W and y - r >= 0 and y + r <= H:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
w,h,x,y,r = map(int,input().split())
if 0<=x-r and x+r<=w and 0<=y-r and y+r<=h:print ("Yes")
else :print ("No")

Submission status: Accepted

Solution code:
W, H, X, Y, R = map(int,input().split())

if 0 <= X-R and X+R <= W and 0 <= Y-R and Y+R <= H:
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
w, h, x, y, r = map(int, input().split(" "))

ans = "Yes"

if x - r < 0:
    ans = "No"
elif x + r > w:
    ans = "No"
if y - r < 0:
    ans = "No"
elif y + r > h:
    ans = "No"

print(ans)

Submission status: Accepted

Solution code:
import math
import copy
from copy import deepcopy
import sys
import fractions
# import numpy as np
from functools import reduce
# import statistics
import heapq
import collections
import itertools
sys.setrecursionlimit(100001)

# input = sys.stdin.readline
# sys.setrecursionlimit(10**6)

# ===FUNCTION===

def getInputInt():
    inputNum = int(input())
    return inputNum


def getInputListInt():
    outputData = []
    inputData = input().split()
    outputData = [int(n) for n in inputData]

    return outputData


def getSomeInputInt(n):
    outputDataList = []
    for i in range(n):
        inputData = int(input())
        outputDataList.append(inputData)

    return outputDataList


def getSomeInputListInt(n):
    inputDataList = []
    outputDataList = []
    for i in range(n):
        inputData = input().split()
        inputDataList = [int(n) for n in inputData]
        outputDataList.append(inputDataList)

    return outputDataList


# ===CODE===

w, h, x, y, r = map(int, input().split())

if x < 0 or y < 0:
    print("No")
    exit(0)

flg1 = x >= r and y >= r
flg2 = w-x >= r and h-y >= r

if flg1 and flg2:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
s = list(map(int,input().split()))
if s[2]+s[4]<=s[0] and s[3]+s[4]<=s[1] and s[2]-s[4]>=0 and s[3]-s[4]>=0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
w,h,x,y,r=map(int,input().split())
if x-r>=0 and x+r<=w and y-r>=0 and y+r<=h:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int, input().split())

if x - r < 0:   # 左
    print('No')
elif x + r > W: # 右
    print('No')
elif y - r < 0: # 下
    print('No')
elif y + r > H: # 上
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
W,H,x,y,r=map(int,input().split())
if W >= x+r and H >= y + r and x >= r and y >= r:
 print('Yes')
else:
 print('No')

Submission status: Accepted

Solution code:
W,H,x,y,r = map(int,input().split())

if r <= x <= W-r and r <= y <= H-r :
    print("Yes")

else:
    print("No")

Submission status: Accepted

Solution code:
W,H,x,y,r = map(int,input().split())

if x - r < 0 or y - r < 0 or x + r > W or y + r > H:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
W,H,x,y,r = map(int,input().split())

if (x+r>W) or (y+r>H) or (x-r<0) or (y-r<0):
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
#2020-03-18
a,b,c,d,e  = map(int,input().split())
if c - e < 0 or c + e > a or d + e > b or d - e < 0:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int, input().split())
if (x >= r and x + r <= W) and (y >= r and y + r <= H):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
W,H,x,y,r= input().split()

W = int(W)
H = int(H)
x = int(x)
y = int(y)
r = int(r)

if x+r <= W and x-r >= 0 :
    if y+r <= H and y-r >= 0:
        out_put = "Yes"
    else:
        out_put = "No"
        
else:
    out_put = "No"


print(out_put)

Submission status: Accepted

Solution code:
w, h, x, y, r = map(int, input().split())
if x + r <= w and 0 <= x - r and 0 <= y - r and y + r <= h:
    ans = 'Yes'
else:
    ans = 'No'
print(ans)

Submission status: Accepted

Solution code:
w, h, x, y, r = map(int, input().split())
if 0 <= x - r <= w and 0 <= x + r <= w and 0 <= y - r <= h and 0 <= y + r <= h:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a,b,c,d,e=input().split()
W=int(a)
H=int(b)
x=int(c)
y=int(d)
r=int(e)
if x>=r and x<=W-r and y>=r and y<=H-r:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int, input().split())

if (0 <= x-r) and (x+r <= W) and (0 <= y-r) and (y+r <= H):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
w,h,x,y,r=(int(x) for x in input().split())
mxx=x+r
mnx=x-r
mxy=y+r
mny=y-r

if mxx>w:
    print("No")
elif mnx<0:
    print("No")
elif mxy>h:
    print("No")
elif mny<0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
w, h, x, y, r = map(int, input().split())
ok = True
if x - r >= 0 and x + r <= w:
    if y - r >= 0 and y + r <= h:
        pass
    else:
        ok = False
else:
    ok = False
    
if ok:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
W,H,x,y,r = map(int,input().split())
if x-r >= 0 and x+r <= W:
    if y-r >=0 and y+r <= H:
        print("Yes") 
    else:print("No")

else:print("No")

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int, input().split(' '))
if (x - r) >= 0 and (x + r) <= W and (y - r) >= 0 and (y + r) <= H:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
def main():
	a,b,c,d,e=(int(x) for x in input().split())
	count = 0
	if 0 <= c+e <= a and 0 <= c-e <= a:
				count+=1
	if 0 <= d+e <= b and 0 <= d-e <= b:
				count+=1
	if count == 2:
		print("Yes")
	else:
		print("No")
	
if __name__ == "__main__":
	main()

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int, input().split())

ans = "No"

if 0 <= x-r <= W and 0 <= x+r <= W:
    if 0 <= y-r <= H and 0 <= y+r <= H:
        ans = "Yes"
print(ans)

Submission status: Accepted

Solution code:
W, h, x, y, r =map(int,input().split())



if (x-r>=0 and x+r<=W)and(y-r>=0 and y+r<=h):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
s = input().rstrip().split(' ')
width = int(s[0])
height = int(s[1])
x = int(s[2])
y = int(s[3])
r = int(s[4])
if x - r >= 0 and x + r <= width and y - r >= 0 and y + r <= height:
 print("Yes")
else:
 print("No")

Submission status: Accepted

Solution code:
w,h,x,y,r=map(int,input().split())
yoko=0
tate=0
if x-r>=0 and x+r<=w:
	yoko=1
if y-r>=0 and y+r<=h:
	tate=1
if yoko==1 and tate==1:
	print("Yes")
else:	
	print("No")

Submission status: Accepted

Solution code:
W, H, x, y, r = [int(n) for n in input().split()]
print('Yes' if 0<=(x-r) and 0<=(y-r) and (x+r)<=W and (y+r)<=H else 'No')

Submission status: Accepted

Solution code:

nums = [int(i) for i in input().split()]

if nums[4] <= nums[2] and nums[2] <= nums[0] - nums[4] and nums[4] <= nums[3] and nums[3] <= nums[1] - nums[4]:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int, input().split())
bool1 = False
if(x - r >= 0):
    if(y - r >= 0):
        if(x + r <= W):
            if(y + r <= H):
                bool1 = True
if(bool1 == True):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
w,h,x,y,r = map(int, input().split())
if x > 0 and y > 0 and x+r <= w and y+r <= h:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int, input().split())
if x - r >= 0 \
  and x + r <= W \
  and y - r >= 0 \
  and y + r <= H:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
W,H,x,y,r = map(int,input().split())
if r<=x<=W-r and r<=y<=H-r : print("Yes")
else : print("No")

Submission status: Accepted

Solution code:
W,H,x,y,r = map(int,input().split())
if x>=r and x + r <= W and y>=r and y + r<=H:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a=[int(x) for x in input().split()]
if a[0]>=a[2]+a[4] and a[1]>=a[3]+a[4] and 0<=a[2]-a[4]  and 0<=a[3]-a[4]:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a = list(map(int, input().split()))
if a[4] <= a[2] <= a[0] - a[4] and a[4] <= a[3] <= a[1] - a[4]:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
w, h, x, y, r = list(map(int, input().split()))

if x + r <= w and x - r >= 0 and y + r <= h and y - r >= 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int, input().split())
if (x >=r) and (x <= (W-r)) and (y >= r) and (y <= (H-r)):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
numbers = list(map(int, input().split()))
W = numbers[0]
H = numbers[1]
x = numbers[2]
y = numbers[3]
r = numbers[4]

if x + r > W or x - r < 0 or y + r > H or y - r < 0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
w, h, x, y, r = map(int,input().split())
print('Yes' if 0 <= x-r and x+r <= w and 0 <= y-r and y+r <= h else 'No')

Submission status: Accepted

Solution code:
A,B,x,y,r=map(int,input().split())
if x+r>A or y+r>B or y-r<0 or y+r<0 or x-r<0 or x+r<0:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int, input().split())
if x -r >= 0 and x + r <= W and y - r >= 0 and y + r <= H:
    print("Yes")
else:
    print ("No")

Submission status: Accepted

Solution code:
w,h,x,y,r=map(int, input().split())
if 0 <= x-r and x+r <= w and 0 <= y-r and y+r <= h:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
# 長方形の中の円

W, H, x, y, r = map(int, input().split())

if x-r>=0 and x+r<=W and y-r>=0 and y+r<=H:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
w,h,x,y,r=map(int, input().split())

if (x-r)>=0 and (x+r)<=w and (y-r) >= 0 and (y+r) <= h:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
w, h, x, y, r = map(int, input().split())
s = "No"
if x - r >= 0 and x + r <= w and y - r >= 0 and y + r <= h:
    s = "Yes"
print(s)

Submission status: Accepted

Solution code:
li = input().split()
l = list(map(int,li))
W,H,x,y,r = l
flag = 1
if x + r > W or x-r < 0:
    flag = 0
if y + r > H or y - r < 0:
    flag = 0
if flag == 1:
    print("Yes")
if flag == 0:
    print("No")

Submission status: Accepted

Solution code:
W,H,x,y,r = map(int, input().split())
if x-r < 0 or x+r > W or y-r < 0 or y+r > H:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
w,h,x,y,r = map(int,input().split())
if y-r < 0 or x-r < 0 or y+r > h or x+r > w:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
W, H, x ,y ,r = map(int, input().split())

word = "Yes"

if x < 0 or y < 0:
    word = "No"

if (x + r) > W:
    word = "No"

if (x - r ) < 0:
    word = "No"

if (y + r) > H:
    word = "No"

if (x - r ) < 0:
    word = "No"

print(word)

Submission status: Accepted

Solution code:
W,H,x,y,r = map(int,input().split())
print('Yes' if 0<=x-r<=W and 0<=x+r<=W and 0<=y-r<=H and 0<=y+r<=H else 'No')

Submission status: Accepted

Solution code:
input_value = input()

w, h, x, y, r = map(int, input_value.split())

is_outside = (x - r) < 0 or w < (x + r) or (y - r) < 0 or h < (y + r)

answer = 'No' if is_outside else 'Yes'

print(answer)

Submission status: Accepted

Solution code:
W,H,x,y,r = map(int,input().split())
if x >= r and y >= r and W >= x + r and H >= y + r:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
W,H,X,Y,R=map(int,input().split())
ans='No'
if R<=X and X<=W-R:
    if R<=Y and Y<=H-R:
        ans='Yes'
print(ans)

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int, input().split())
if 0 <= (x - r)< (x + r) <= W and  0 <= (y - r) < (y + r) <= H:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
w,h,x,y,r = map(int, input().split())

if 0+r <= x <= w-r and 0+r <= y <= h-r:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
w, h, x, y, r = map(int, (input().split()))
if x - r >= 0 and x + r <= w and y - r >= 0 and y + r <= h:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
w, h, x, y, r = map(int, input().split())

if 0<= x-r and x+r <=w and 0<=y-r and y+r<=h:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
W,H,x,y,r = map(int,input().split())

if (0>x or 0>y):
    print("No")
elif (x+r<=W and y+r<=H):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
W, H, x, y, r = [int(x) for x in input().split()]
if (0 <= x - r and W >= x + r and 0 <= y - r and H >= y + r):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
w,h,x,y,r = map(int,input().split())
print("Yes" if r<=x<=w-r and r<=y<=h-r else "No")

Submission status: Accepted

Solution code:
W, H, x, y, r = list(map(int, input().split()))
if x+r<=W and x-r>=0 and y+r<=H and y-r>=0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
l=list(map(int,input().split()))
if l[0]>=l[2]+l[4] and l[2]-l[4]>=0 and l[1]>=l[3]+l[4] and l[3]-l[4]>=0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
i = input().split()
W = int(i[0])
H = int(i[1])
x = int(i[2])
y = int(i[3])
r = int(i[4])
if r <= x <= W-r and r <= y <= H-r:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int, input().split())
if x + r <= W and y + r <= H and x - r >= 0 and y - r >= 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
W,H,x,y,r = [int(i) for i in input().split()]
if 0 <= x - r and x + r <= W and 0 <= y - r and y + r <= H:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
i = input()
w,h,x,y,r = map(int, i.split())

if x - r < 0 or x + r > w or y - r < 0 or y + r > h:
        print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
W, H, x, y, r = [int(i) for i in input().split()]
if x + r > W or y + r > H or x - r < 0 or y - r < 0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
l = input()
W,H,x,y,r = list(map(int, l.split()))
if 0 <= x - r and  x + r <= W and 0 <= y - r and y + r <= H:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import sys

w,h,x,y,r = map(int, input().split())
if not (x - r >= 0 and x + r <= w):
    print("No")
    sys.exit()
if not (y - r >= 0 and y + r <= h):
    print("No")
    sys.exit()
print("Yes")

Submission status: Accepted

Solution code:
W,H,x,y,r=list(map(int,input().split(' ')))
if x+r > W or x+r < 0 or x-r < 0:
  print('No')
elif  y+r > H or y+r < 0 or y-r < 0:
  print('No')
else:
  print('Yes')

Submission status: Accepted

Solution code:
w,h,x,y,r=map(int,input().split())
if x-r>=0 and y-r>=0:
    if x+r<=w and y+r<=h:
        print('Yes') 
    else:
        print('No')
else:
    print('No')

Submission status: Accepted

Solution code:
sc = list(map(int, input().split()))
w = sc[0]
h = sc[1]
x = sc[2]
y = sc[3]
r = sc[4]
if (0 <= x - r) and (x + r <= w) and (0 <= y - r) and (y + r <= h):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

W, H, x, y, r = map(int, input().split())
if 0 <= x - r and x + r <= W and 0 <= y - r and y + r <= H:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
w,h,x,y,r=map(int,input().split())
if x - r < 0 or x + r > w:
    print('No')
elif y - r < 0 or y + r > h:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
w, h, x, y, r = list(map(int, input().split()))

if x>0 and y>0:
    if 0 <= x+r <= w and 0 <= y+r <= h:
        print("Yes")
    else:
        print("No")

else:
    print("No")

Submission status: Accepted

Solution code:
W,H,x,y,r = map(int,input().split())

if r <= x and x <= W-r and r <= y and y <= H-r :
    print('Yes')
else :
    print('No')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

W, H, x, y, r = list(map(int, input().split()))

if y + r > H: # Up
    print("No")
elif y - r < 0: # Down
    print("No")
elif x - r < 0: # Left
    print("No")
elif x + r > H: # Right
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
W, H, x, y, r = map(lambda z: int(z), input().split(" "))
result = "No"
if x - r >= 0 and y - r >= 0:
    if x + r <= W and y + r <= H:
        result = "Yes"
print(result)

Submission status: Accepted

Solution code:
w,h,x,y,r = map(int,input().split())

if w < x + r or 0 > x - r:
    print("No")
elif h < y + r or 0 > y - r:
    print("No")
else:
    print("Yes")