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:
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 < 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:
l = input().split()

w = int(l[0])
h = int(l[1])
x = int(l[2])
y = int(l[3])
r = int(l[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:
w,h,x,y,r=(int(x) for x in input().split())

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:
L=input().split( )
x=int(L[2])
y=int(L[3])
W=int(L[0])
H=int(L[1])
r=int(L[4])

if x+r<=W and y+r<=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 and x + r <= W and y >= r and y + r <=H:
    print("Yes")
else: 
    print("No")

Submission status: Accepted

Solution code:
#from numpy import*
#from scipy import*
from collections import* #defaultdict Counter deque appendleft
from fractions import gcd
from functools import* #reduce
from itertools import* #permutations("AB",repeat=2) combinations("AB",2) product("AB",2) groupby
from operator import mul
from bisect import* #bisect_left bisect_right
from heapq import* #heapify heappop heappushpop
from math import factorial
from copy import deepcopy
import sys
#input=sys.stdin.readline  #危険！基本オフにしろ！
sys.setrecursionlimit(10**6)


def main():
    w,h,x,y,r=map(int,input().split())
    if all(0<=x+s<=w and 0<=y+t<=h for s,t in ((-r,0),(r,0),(0,r),(0,-r))):
        print("Yes")
    else:
        print("No")
if __name__ == '__main__':
    main()

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 ((x - r >= 0) and
    (y + r <= H) and
    (x + r <= W) and
    (y - r >= 0)):
    print("Yes")
else:
    print("No")

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])

a = x + r
b = x - r
c = y + r
d = y - r

if 0 <= b and a <= W:
    if 0 <= d and c <= H:
        print("Yes")
    else:
        print("No")
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 <= W and x-r>=0 and y+r <= H and y-r>=0 :
    print("Yes")
else :
    print("No")

Submission status: Accepted

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

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 W < x+r or x-r < 0 or H < y+r or y-r < 0:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
a = input().split()
W,H = int(a[0]),int(a[1])
x,y = int(a[2]),int(a[3])
r = int(a[4])
if 0 <= x-r and x+r <= W:
    if 0 <= y-r 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 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:
input = input().split()
# input = '5 4 2 2 1'.split()

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

circlePoints = [
    [x - r, y],
    [x + r, y],
    [x, y - r],
    [x, y + r]
]

isInRect = 'Yes'

for point in circlePoints:
    dx = point[0]
    dy = point[1]
    
    if (dx > W or dx < 0 or dy > H or dy < 0):
        isInRect = 'No'

print(isInRect)

Submission status: Accepted

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

if x<r or w-x< r or y<r 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 >= 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 = list(map(int, input().split()))
dist1 = [W-x, x]
dist2 = [H-y, y]
dist3 = [sorted(dist1).pop(0), sorted(dist2).pop(0)]
if r <= sorted(dist3).pop(0):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
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())
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 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())
print("Yes"*(r<=x<=W-r)*(r<=y<=H-r)or"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-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 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 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 = (int(x) for x in 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>=(x+r)>=0 and H>=(y+r)>=0 and W>=(x-r)>=0 and H>=(y-r)>=0):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
# coding: utf-8
w,h,x,y,r=(int(x) for x in 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:
W, H, x, y, r = map(int, input().split())

left = x - r
right = x + r
bottom = y - r
top = y + r

if left < 0 or right > W or bottom < 0 or top > H:
    print('No')
else:
    print('Yes')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int, input().split())
 
if r < (x + r) <= W :
  if r < (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 + r) <= W :
  if r < (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:

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    # 引数を受け取る
    args = input().split(' ')
    args = [int(i) for i in args]

    W = args[0]
    H = args[1]
    x = args[2]
    y = args[3]
    r = args[4]
    flag = True

    # 水平方向の判定
    if x-r<0 or x+r>W:
        flag = False

    # 垂直方向の判定
    if y-r<0 or y+r>H:
        flag = False

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

if __name__ == "__main__":
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

else:
	print("No")

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 or (x+r) > W or (y-r) < 0 or (y+r) > H :
  print('No')
elif(x-r) >= 0 and (x+r) <= W and (y-r) >= 0 and (y+r) <= H :
  print('Yes')

Submission status: Accepted

Solution code:
l=input()
w,h,x,y,r=map(int, l.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:
if __name__ == '__main__':
	data = input().split()
	w = int(data[0])
	h = int(data[1])
	x = int(data[2])
	y = int(data[3])
	r = int(data[4])

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

Submission status: Accepted

Solution code:
samp = input()
samp = samp.split()

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

west = x - r
east = x + r
north = y + r
south = y - r
isIn = True
if(west < 0):
    isIn = False
elif(east > W):
    isIn = False
elif(north > H):
    isIn = False
elif(south < 0):
    isIn = False

if(isIn == True):
    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<=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 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:
l=list(map(int,input().split()))
W=l[0]
H=l[1]
x=l[2]
y=l[3]
r=l[4]

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 0+r <= x and W - r >= x and 0+r <= y and H - r >= y:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
nums = input().split()
width = int(nums[0])
height = int(nums[1])
x = int(nums[2])
y = int(nums[3])
r = int(nums[4])

if x - r >= 0 and x + r <= width:
    ans_x = True
else:
    ans_x = False
    
if y - r >= 0 and y + r <= height:
    ans_y = True
else:
    ans_y = False
    
if ans_x and ans_y:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

    res = "Yes"

    if (x < r) or (y < r) or ((h - y) < r or (w - x) < r):  
        res = "No"

    return res

if __name__ == "__main__":
    print(inside_circle(input()))

Submission status: Accepted

Solution code:
w, h, x, y, r = map(int, input().split())
if x+r > w or x-r < 0:
    print("No")
elif 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())
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<=W and 0<=y<=H) and (abs(W-x)>=r and abs(H-y)>=r):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
inputs = input().split()
w = int(inputs[0])
h = int(inputs[1])
x = int(inputs[2])
y = int(inputs[3])
r = int(inputs[4])

if x+r > w or x-r < 0:
    print("No")
elif 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())
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 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())
print('Yes' if r <= x <= w-r and r <= y <= h-r else '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  r <= x <= W-r:
  if  r <= y <= H-r:
    print("Yes")
  else:
    print("No")  
else:
  print("No")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w,h,x,y,r = map(int, raw_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:
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:
i = input()
list = i.split()
[W, H, x, y, r] = list

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

X = x + r
Y = y + r

A = x - r
B = y - r

if A < 0 or B < 0:
    ans = "No"
elif W >= X and H >= Y:
    ans = "Yes"
else:
    ans = "No"

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
nums = list(map(int, input().split()))
c1 = nums[4] <= nums[2]
c2 = nums[4] <= nums[3]
c3 = nums[4] + nums[3] <= nums[1]
c4 = nums[4] + nums[2] <= nums[0]
if c1 and c2 and c3 and c4:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

if (0 < x < W) and (0 < y < H) and (0 < x + r <= W) and (0 < y + r <= H):
  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 or W < x + r:
    print('No')
elif 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+r<=w and y+r<=h:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

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:
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 = 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 0 <= x -r <=x + r <= W  and 0 <= y -r <= y + r <= H:

    print('Yes')

else:

    print('No')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#ITP1_2_D
#W H x y r

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 > w or x-r < 0 or y+r > h or y-r < 0:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
i = input()
W,H,x,y,r = map(int, i.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:
data = input().split()

w = int(data[0])
h = int(data[1])
x = int(data[2])
y = int(data[3])
r = int(data[4])

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

Submission status: Accepted

Solution code:
W,H,x,y,r=map(int,input().split())
xp=x+r
xm=x-r
yp=y+r
ym=y-r
if(x+r>W or x-r<0):
    print("No")
elif(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())
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)+(x+r>w)+(y-r<0)+(y+r>h))>0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
l = input().split()
W, H, x, y, r = map(int, l)
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 W >= 2*r and W - r >= x and r <= x and H >= 2*r and H - r >= y and r <= y:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
i = input()
W,H,x,y,r=map(int,i.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:
W, H, x, y, r = [int(i) for i in 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:
a =  list(map(int, input().split()))
W = a[0]
H = a[1]
x = a[2]
y = a[3]
r = a[4]

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 <= W and y+r <= H and x >= r and y >= r:
    print("Yes")
else:
    print ("No")

Submission status: Accepted

Solution code:
#!/usr/bin/env python
#-*- coding: utf-8 -*-

# http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_2_D

if __name__ == '__main__':
    w, h, x, y, r = map(int, raw_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:
i = list(map(int, input().split()))

if i[2] + i[4] <= i[0]:
    if i[2] - i[4] >= 0:
        if i[3] + i[4] <= i[1]:
            if i[3] - i[4] >= 0:
                print("Yes")
            else:
                print("No")
        else:
            print("No")
    else:
        print("No")
else:
    print("No")

Submission status: Accepted

Solution code:
i = list(map(int,input().split()))
w = i[0]
h = i[1]
x = i[2]
y = i[3]
r = i[4]
d1 = r + x
d2 = r + y
if r<= h and r<=w and 0<x<w and 0<y<h and d1<=w and d2<=h:
    print('Yes')
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 (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 or x +r >W or 0 > y -r or y + r > H:
        print('No')
else:
        print('Yes')

Submission status: Accepted

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

if 0<=x<=W and 0<=y<=H and 0<=x-r and 0<=y-r 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())
print('YNeos'[not(r<=x<=w-r and r<=y<=h-r)::2])

Submission status: Accepted

Solution code:
a = input().split(' ')
for i in range(len(a)):
    a[i] = int(a[i])
if (a[2]>=a[4] and a[3]>=a[4]) and (a[0]>=a[2]+a[4] and a[1]>=a[3]+a[4]):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
W, H, X, Y, R = [int(_) for _ in 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())
print('Yes' if r <= x <= W - r and r <= y <= H - r else 'No')

Submission status: Accepted

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

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 x>=r and y>=r and x+r<=W and y+r<=H:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
W, H, x, y, r = list(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=map(int,input().split())
print(["No","Yes"][r<=x<=w-r and r<=y<=h-r])

Submission status: Accepted

Solution code:
W,H,x,y,r=list(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())
print("Yes" if x+r <= W and x-r >= 0 and y+r <= H and y-r >= 0 else "No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# 入力を受け取る
input_line = input()

# 入力データを分割する
input_list = input_line.split()
W = int(input_list[0])
H = int(input_list[1])
x = int(input_list[2])
y = int(input_list[3])
r = int(input_list[4])

flag = 0

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

Submission status: Accepted

Solution code:
W, H, x, y, r=list(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:
# coding: utf-8
line = input().rstrip().split()
W = int(line[0])
H = int(line[1])
x = int(line[2])
y = int(line[3])
r = int(line[4])
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())
print(['No', 'Yes'][0 <= x - r and w >= x + r and 0 <= y - r and h >= y + r])

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 and y - r >= 0 and y + r <= h:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
z = input().split()
W = int(z[0])
H = int(z[1])
x = int(z[2])
y = int(z[3])
r = int(z[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 >= 0+r and x <= W-r and y >= 0+r and y<= H-r):
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
input_list = input().split(' ')

for i, n in enumerate(input_list):
    input_list[i] = int(n)

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

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:
list = input().split()
w = int(list[0])
h = int(list[1])
x = int(list[2])
y = int(list[3])
r = int(list[4])

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 <= y - r) and (y + r <= h)) and ((0 <= x - r) and (x + r <= w)):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
array = input().split()
array = [int(i) for i in array]
if (array[2] + array[4] <= array[0]) & (array[3] + array[4] <= array[1]) & (array[2] - array[4] >= 0) & (array[3] - array[4] >= 0):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
W, H, x, y, r = list(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(inputData) for inputData in input().split())
rx = x+r
lx = x-r
uy = y+r
by = y-r

if rx > W or lx < 0 or uy > H or by < 0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

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


main()

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=list(map(int,input().split()))
if((x<r)or((x+r)>w)):
  print("No")
elif((y<r)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 x+r > W or y+r > H :
    print('No')
elif x-r < 0 or y-r < 0 :
    print('No')
else:
    print('Yes')

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
a,b,c,d,e=map(int,input().split())

if(c-e<0 or d-e<0):
    print("No")
elif(c+e>a or d+e>b):
    print("No")
else:
    print("Yes")

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=[int(x) for x in input().split()]
if x < 0 or y < 0 or x > w or y > h:
    print('No')
else:
	first, second = False, False 
	if (x + r <= w) and (x - r >= 0):
	    first = True
	if (y + r <= h) and (y - r >= 0):
	    second = True
	if first and second:
	    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:
string_list = input().split()
num_list = list(map(int, string_list))
W = num_list[0]
H = num_list[1]
x = num_list[2]
y = num_list[3]
r = num_list[4]
if (r <= x) & (x + r <= W) & (r <= y) & (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:
def is_circle_in_a_rectangle(W:int, H:int, x:int, y:int, r:int) -> bool:
    if x - r < 0:
        return False
    if y - r < 0:
        return False
    if x + r > W:
        return False
    if y + r > H:
        return False
    return True

if __name__ == "__main__":
    in_str = input()
    in_str = in_str.split()

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

    if W < 0:
        raise ValueError('Parameter W is less than 0.')
    if W > 100:
        raise ValueError('Parameter W is larger than 100.')
    if H < 0:
        raise ValueError('Parameter H is less than 0.')
    if H > 100:
        raise ValueError('Parameter H is larger than 100.')
    if x < -100:
        raise ValueError('Parameter x is less than -100.')
    if x > 100:
        raise ValueError('Parameter x is larger than 100.')
    if y < -100:
        raise ValueError('Parameter y is less than -100.')
    if y > 100:
        raise ValueError('Parameter y is larger than 100.')
    if r < 0:
        raise ValueError('Parameter r is less than 0.')
    if r > 100:
        raise ValueError('Parameter r is larger than 100.')

    if is_circle_in_a_rectangle(W, H, x, y, r):
        print('Yes')
    else:
        print('No')