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: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
def in_rectangle(w,h,x,y,r):
    if x>w-r or x<r:
        return False
    elif y>h-r or y<r:
        return False
    else:
        return True

Submission status: Wrong Answer

Solution code:
def in_rectangle(w,h,x,y,r):
    if x>w-r or x<r:
        print("No")
        return False
    elif y>h-r or y<r:
        print("No")
        return False
    else:
        print("Yes")
        return True

Submission status: Wrong Answer

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: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
W, H, x, y, r = map(int, input().split())
if r > (W / 2) or r > (H / 2):
    print("No")

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

Submission status: Wrong Answer

Solution code:
W, H, x, y, r = map(int, input().split())
if r > (W / 2) or r > (H / 2):
    print("No")

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

Submission status: Wrong Answer

Solution code:
#! python3
# circle_in_a_rectangle.py

W, H, x, y, r = [int(n) for n 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: Wrong Answer

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

Submission status: Wrong Answer

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

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

else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

if h >= top and bottom >= 0 and right >= top and left >= 0:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
args = input()

list_str = args.split(" ")

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

flg1 = False
flg2 = False

### 0 <= (x +- 2r) <= W
if (x - 2 * r) <= 0 and (x + 2 * r) <= W:
    flg1 = True
    ### 0 <= (y +- 2R) <= H
    if (y - 2 * r) <= 0 and (y + 2 * r) <= H:
        flg2 = True

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
W,H,x,y,r = 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: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# Circle in a Rectangle

a = [int(i) for i in input().rstrip().split()]
rectangleWidth = a[0]
rectangleHeight = a[1]
circleCenter = [a[2], a[3]]
circleRadius = a[4]

# distance between circleCenter and border of the rectangle
# [left, right, down, up]
distance = [abs(a[0] - a[2]), abs(a[2]), abs(a[1] - a[3]), abs(a[3])]
trueDigit = 1 # Which One 'False' make 0
for d in distance:
    if d - circleRadius >= 0: trueDigit *= 1 # はみ出さないときOK
    else: trueDigit *= 0

# Judge
if trueDigit == 1: print('Yes')
else: print('No')

Submission status: Wrong Answer

Solution code:
# Circle in a Rectangle

a = [int(i) for i in input().rstrip().split()]
rectangle = [a[0], a[1]]
circleCenter = [a[2], a[3]]
circleRadius = a[4]

# distance between circleCenter and border of the rectangle
# [left, right, down, up]
distance = [a[0] - a[2], a[2], a[1] - a[3], a[3]]
trueDigit = 1 # Which One 'False' make 0
print(a[4])
for d in distance:
    print(d)
    if d - circleRadius > 0: trueDigit *= 1 # はみ出さないときOK
    else: trueDigit *= 0

# Judge
if trueDigit == 1: print('Yes')
else: print('No')

Submission status: Wrong Answer

Solution code:
# Circle in a Rectangle

a = [int(i) for i in input().rstrip().split()]
rectangle = [a[0], a[1]]
circleCenter = [a[2], a[3]]
circleRadius = a[4]

# distance between circleCenter and border of the rectangle
# [left, right, down, up]
distance = [a[0] - a[2], a[2], a[1] - a[3], a[3]]
trueDigit = 1 # Which One 'False' make 0
# print(a[4])
for d in distance:
    # print(d)
    if d - circleRadius > 0: trueDigit *= 1 # はみ出さないときOK
    else: trueDigit *= 0

# Judge
if trueDigit == 1: print('Yes')
else: print('No')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
def solve(line):

    w=line[0]
    h=line[1]
    x=line[2]
    y=line[3]
    r=line[4]
    if ( r <= x and x <= w - r ) and ( r <= y and y <= h - y ) :
        print("Yes")
    else:
        print("No")
 

def answer():
    s = input().split()
    line = list(map(int, s))
    
    solve(line)

if __name__ =='__main__':
    answer()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
w,h,x,y,r=map(int,raw_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:
import sys


def main():
    input_str = sys.stdin.readline()
    W, H, x, y, r = [int(i) for i in input_str.split(' ')]
    upper = H >= y + r
    lower = y - r >= 0
    left = x - r >= 0
    right = x + r <= W
    if upper & lower & left & right:
        print('Yes')
    else:
        print('No')
    return


if __name__ == '__main__':
    main()

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

Submission status: Accepted

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

if 0 > int(a[2]) - int(a[4]):
    print('No')
elif 0 > int(a[3]) - int(a[4]):
    print('No')
elif int(a[0]) < int(a[2]) + int(a[4]):
    print('No')
elif int(a[1]) < int(a[3]) + int(a[4]):
    print('No')
else:
    print('Yes')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
inp = input()
a = inp.split()
a[0] = int(a[0])
a[1] = int(a[1])
a[2] = int(a[2])
a[3] = int(a[3])
a[4] = int(a[4])
if (a[4] <= a[2] and a[2] <= a[0]-a[4]) and (a[4] <= a[3] and a[3] <= a[1]-a[4]):
    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:
# coding: utf-8
# Your code here!
# TP1_2_D

# 5 4 2 2 1
# 22 - 33
# 3 < 5　かつ　3<4だからOK

# 5 4 2 4 1
# 24 - 35
# 5がアウトる

# x,yがマイナスの場合も考慮したい


N = input().split()
# print(N)

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

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
W, H, x, y, r = map(int, raw_input().split())
if r <= x and r <= y 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())

flg = False
for X in [x - r, x + r]:
    for Y in [y - r, y + r]:
        if not 0 <= X <= W:
            flg = True
        if not 0 <= Y <= H:
            flg = True

print(["Yes", "No"][flg])

Submission status: Accepted

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

flg = False
for X in [x - r, x + r]:
    for Y in [y - r, y + r]:
        if not 0 <= X <= W or not 0 <= Y <= H:
            flg = True

print(["Yes", "No"][flg])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
d=raw_input().split(" ")
l=list(map(int,d))
if(l[2]>0 and l[3]>0):
    if(l[0]>=(l[2]+l[4])):
        if(l[1]>=(l[3]+l[4])):
            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 0 <= x - r and 0 <= y - r:
    if x + r <= W and y + r <= H:
        print('Yes')
    else:
        print('No')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
W, H, x, y, r = [int(i) for i in input().rstrip().split(" ")]
hidari, migi = x-r, x + r
shita, ue = y-r, y+r

if (0 <= hidari) and (migi <= W) and (0 <= shita) and (ue <= H):
    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:
WHxyr = input()
WHxyr_list = WHxyr.split(" ")
W = int(WHxyr_list[0])
H = int(WHxyr_list[1])
x = int(WHxyr_list[2])
y = int(WHxyr_list[3])
r = int(WHxyr_list[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 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 = (int(x) for x 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:
import sys

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

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

Submission status: Accepted

Solution code:
X,Y,a,b,c = map(int,input().split())
if X < a + c or 0 > a - c:
    print("No")
elif Y < b + c or 0 > b - c:
    print("No")
else :
    print("Yes")

Submission status: Accepted

Solution code:
from sys import stdin

W, H, x, y, r = [int(x) for x in stdin.readline().rstrip().split()]

def isInner(px, py):
    if( px < 0 or px > W ):
        return False
    else: # x座標は長方形の内部
        if( py < 0 or py > H ):
            return False
        else:
            return True

if( isInner(x-r, y) and isInner(x+r, y) and isInner(x, y-r) and isInner(x, y+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 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())

delta = [[r, 0], [-r, 0], [0, r], [0, -r]]

for dx, dy in delta:
    if 0 <= x + dx <= W and 0 <= y + dy <= H:
        pass
    else:
        print('No')
        exit(0)

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

Submission status: Accepted

Solution code:
Indata = [int(i) for i in input().split()]
W,H,x,y,r = [int(i) for i in Indata]
x_right = x+r
x_left = x-r
y_on = y+r
y_under = y-r

if x_right>W or x_left<0 or y_on>H or y_under<0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
a=input()
b=a.split()
d=list()
for c in b:
    d.append(int(c))
W=d[0]
H=d[1]
x=d[2]
y=d[3]
r=d[4]
if W-r>=x>=0 and H-r>=y>=0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
W,H,x,y,r = [int(i) for i in input().split()]
w1 = r
h1 = r
w2 = W-r
h2 = H-r
if w1 <= x <= w2 and h1 <= y <= h2:
    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 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 > w or y + r > h or x - r < 0 or h - r < 0 or x < 0 or y < 0:
  print('No')
else:
  print('Yes')

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

Submission status: Accepted

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

Submission status: Accepted

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

if __name__=='__main__':
    main()

Submission status: Accepted

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

if __name__=='__main__':
    main()

Submission status: Accepted

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

a = x-r
b = x+r

c = y-r
d = y+r 

  
if a>=0 and b<=W and c>=0 and d<=H:
  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<=y+r<=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,rad = (int(x) for x in input().split())

t = y + rad
b = y - rad
r = x + rad
l = x - rad

if (t > H) or (b < 0) or (r > W) or (l < 0):
  print ("No")
else:
  print ("Yes")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

if x < W and y < H and (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 and y+r <= H):
  if(x-r >= 0 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 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 = input().split()
w = int(w)
h = int(h)
x = int(x)
y = int(y)
r = int(r)
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 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 r<=x<=w-r:
  if r<=y<=h-r:print("Yes");exit()
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:
x = input().split()
W, H, x, y, r = int(x[0]), int(x[1]), int(x[2]), int(x[3]), int(x[4])

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

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:
x=input().split()
W,H,x,y,r=int(x[0]),int(x[1]),int(x[2]),int(x[3]),int(x[4])
if x<r or x>W-r or y<r or y>H-r:
    print("No")
else:
    print("Yes")

Submission status: Accepted

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

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

Submission status: Accepted

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