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 = map(int,input().split())

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

Submission status: Accepted

Solution code:
input_line = raw_input()
temp_list = input_line.split()
w = int(temp_list[0])
h = int(temp_list[1])
x = int(temp_list[2])
y = int(temp_list[3])
r = int(temp_list[4])
 
if x >= r and y >=  r and (w-x) >= r and (h-y) >= r:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
width,height,x,y,r = map(int, input().split())

if x - r < 0:
    result = "No"

elif y - r < 0:
    result = "No"

elif x + r > width:
    result = "No"

elif y + r > height:
    result = "No"

else:
    result = "Yes"	

print(result)

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:
# -*- coding: utf-8 -*-

a = list(map(int, input().split()))
if(a[4] <= a[2]) & (a[4] <= a[3]) & (a[2] <= a[0] - a[4]) & (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 and y - r >= 0 and x + r <= w and y + r <= h:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
s = input()
ss = s.split(" ")
arg = [int(sss) for sss in ss]
e = arg[0] >= arg[2] + arg[4] and arg[1] >= arg[3] + arg[4] and arg[2] >= arg[4] and arg[3] >= arg[4]
print("Yes" if e else "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 in_rectangle(w,h,x,y,r):
    if (0<=x-r<=w) and (0<=y-r<=h) and (0<=x+r<=w) and (0<=y+r<=h):
        return True
    else:
        return False
w,h,x,y,r=map(int,input().split())
if (in_rectangle(w,h,x,y,r)==True):
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

left = x-r >= 0
right = x+r <= W
top = y+r <= H
bottom = y-r >= 0

if left*right*top*bottom == 1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

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=[int(x) for x in input().split()]
if x > w-r or y > h-r or x < r or 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 x > w-r or y > h-r 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:
    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())
w -= r
h -= r
if x <= w and x >= r and y <= h and y >= r:
    print("Yes")
else :
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

a = True

if x < r or w - r < x :
    a = False

if y < r or h - r < y :
    a = False


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

Submission status: Accepted

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: Accepted

Solution code:
W,H,x,y,r = map(int,input().split())
ok = 1
if x < r or W - x <r :
 ok = False
if y < r or H - y < r :
 ok = False
print('Yes') if ok 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:
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 = 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:
# -*- coding: utf-8 -*-
"""
Created on Tue Apl 30 19:23:25 2018

@author: Fujiichang
"""

if __name__ == "__main__":
    value = input().split()
    W = int(value[0])
    H = int(value[1])
    x = int(value[2])
    y = int(value[3])
    r = int(value[4])

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
line = input().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:
    print("No")
elif w < x + r:
    print("No")
elif y - r < 0:
    print("No")
elif h < y + r:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
w, h, x, y, r = [int(i) for i in input().split(' ')]

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

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

Submission status: Accepted

Solution code:
w,h,x,y,r=map(int, input().split())
if r<=x and r+x<=w and r<=y and r+y<=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 x+r>w 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()]
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:
def numinput():
    a = input().split()
    for i in range(len(a)):
        a[i] = int(a[i])
    return a

def main():
    a = numinput()
    W = a[0]; H = a[1]; x = a[2]; y = a[3]; r = a[4]
    if x >= r and x + r <= W and y >= r and y + r <= H: print("Yes")
    else: print("No")

if __name__ == "__main__":
    main()

Submission status: Accepted

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

if 0 <= (x - r) and (x + r) <= W:
    flg1 = True

    if 0 <= (y - r) and (y + r) <= H:
        flg2 = True

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

Submission status: Accepted

Solution code:
tmp=input().split()
W=int(tmp[0])
H=int(tmp[1])
x=int(tmp[2])
y=int(tmp[3])
r=int(tmp[4])
Flag=True
if x-r<0 or x+r>W or y-r<0 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 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 = 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(float, 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())
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:
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[4]:print("Yes")
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:
a,b,c,d,e=input().split()
w = int(a)
h = int(b)
x = int(c)
y = int(d)
r = int(e)
if y + r>h:
	print("No")
elif x + r>w:
	print("No")
elif x - r<0:
	print("No")
elif y - r<0:
	print("No")
else:
	print("Yes")

Submission status: Accepted

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

Submission status: Accepted

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

X = map(int, raw_input().split())

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

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

Submission status: Accepted

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

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

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

if top <= H and bottom >= 0 and right <= W and left >= 0:
	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:
import sys

if __name__ == '__main__':
    w, h, x, y, r = map(int, sys.stdin.read().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 = 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 <= 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>=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 r<=y<=H-r and r<=x<=W-r:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

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

Submission status: Accepted

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]

if a[2] - a[4] >= 0 and a[2] + a[4] <= a[0]:
    if a[3] - a[4] >= 0 and a[3] + a[4] <= a[1]:
        print('Yes')
    else:
        print('No')
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:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

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

Submission status: Accepted

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 - r ) :
        print("Yes")
    else:
        print("No")
 

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

if __name__ =='__main__':
    answer()

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:
def on_line(right, n, r):
    return 0 <= (n-r) <= (n+r) <= right

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

if on_line(W, x, r) and on_line(H, y, r):
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

(W, H, x, y, r) = [int(i) for i in sys.stdin.readline().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:
i = list( map(int, input().split()) )

w = i[0]
h = i[1]
x = i[2]
y = i[3]
r = i[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())
Flag=True
if x+r>W or x-r<0:
    Flag=False
if y+r>H or y-r<0:
    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 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())
ans = "No"
if w >= 2*r and h >= 2*r:
    if  r<=x and x<=w-r and 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 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")
#a = input().split()
#a_int = [int(s) for s in a]
#a_sorted = sorted(a_int)
#print(' '.join(map(str, a_sorted)))

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

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("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 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())
L,R = x-r,x+r
U,D = y+r,y-r
print('Yes' if 0<=L<=R<=W and 0<=D<=U<=H else '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 = list(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())
if W>=x+r and H>=y+r 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 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())
anx = min(x,w-x)
any = min(y,h-y)
ans = min(anx,any)
if r <= ans :
	print("Yes")
else:
	print("No")

Submission status: Accepted

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

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:
#入力
l = input()
w,h,x,y,r = list(map(int, l.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 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 = list(map(int, input().split()))

cl_up = y + r
cl_down = y - r
cl_left = x - r
cl_right = x + r

if cl_up > h or cl_down < 0 or cl_left < 0 or cl_right > h:
    print("No")
else:
    print("Yes")

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:
    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=(int(u) for u in 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 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 and y-r>=0 and y+r<=H:
    print("Yes")
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-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 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 = (int(x) for x in input().split())

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

Submission status: Accepted

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

x1 = x - r
y1 = y - r
x2 = x + r
y2 = y + r

if x1 < 0 or y1 < 0:
    print('No')
elif x2 > W or y2 > H:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
W,H,x,y,r=map(int,input().split())
a = min(x,y,W-x,H-y)
if a >= r:
    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:
b = input().split()
s = [int(n) for n in b]
W = s[0]
H = s[1]
x = s[2]
y = s[3]
r = s[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:
S = input()
s = S.split()

W,H,x,y,r = list(map(int,s))

x_max = x+r 
x_min = x-r

y_max = y+r
y_min = y-r


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

Submission status: Accepted

Solution code:
W,H,x,y,r=(int(x) for x in 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:
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())
x_min = x - r
x_max = x + r
y_min = y - r
y_max = y + r
if x_min >= 0 and x_max <= W and y_min >= 0 and y_max <= H:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
def mapt(fn, *args):
    return tuple(map(fn, *args))


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


n = mapt(int, input().split(" "))

aa(*n)

Submission status: Accepted

Solution code:
W, H, x, y, r = map(int, input().split())
if y+r <= H and y-r >= 0 and x+r <= W and x-r >= 0:
    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:
    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(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:
# (r, H-r)   (W-r, H-r)
# (r, r)     (W-r, W)    に囲まれた領域に中心がある円はYes, それ以外はNo

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c,d,e=map(int,input().split())
if e<=c<=a-e and e<=d<=b-e:
    print("Yes")
else:
    print("No")