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:
import math
l=input().split()
W=int(l[0])
H=int(l[1])
x=int(l[2])
y=int(l[3])
r=int(l[4])
pi=math.pi
c_area=r**2*pi
square_area=W*H
if x>=-100 and y<=100 and W in range(0,101) and H in range(0,101) and r in range(1,101):
    if c_area>=square_area:
        print("No")
    elif 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 = (int(i) for i in input().split())
judge = True
while judge == True:
    if x-r < 0 or y-r < 0:
        print("No")
        judge = False
        break
    if x+r >W or y+r >H:
        print("No")
        judge = False
        break
    print("Yes")
    judge = False

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:
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):
    s="No"
else:
    s="Yes"

print(s)

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:
l = input()
W, H, x, y, r = [int(i) for i in l.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 = [int(x) for x in 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 >= 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())
a = w-r
b = h-r
if r <= x <= a and r <= y <= b:
 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:
    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 = 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:
str=input()
str_list=str.split()
W=int(str_list[0])
H=int(str_list[1])
x=int(str_list[2])
y=int(str_list[3])
r=int(str_list[4])
in_rec=True

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

Submission status: Accepted

Solution code:

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

def main():
    W,H,x,y,r= map(int, input().split())
    CircleinRectangle(W,H,x,y,r)

if __name__ == "__main__":
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
w, h, x, y, r = [int(s) for s in 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:
a=input().split(" ")
W=int(a[0])
H=int(a[1])
x=int(a[2])
y=int(a[3])
r=int(a[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:
def main():
    W, H, x, y, r = (int(i) for i in input().split())
    if x-r < 0 or W < x+r or y-r < 0 or H < y+r:
        print("No")
    else:
        print("Yes")

if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i=list(map(int,input().split()))
if i[2]<0 or i[3]<0:
  print('No')
elif i[2]+i[4]<=i[0] and i[3]+i[4]<=i[1]:
  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])

jg = 1

if 0>(x-r) or (x+r)>w:
    jg=0

if 0>(y-r) or (y+r)>h:
    jg=0
    
if jg == 1:
    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 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:
w,h,x,y,r=map(int,input().split())
ans='No'
if 0<=x<=w-r and 0<=y<=h-r:
    ans='Yes'
print(ans)

Submission status: Accepted

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

if r > x  or r > y  or r*r > x*x + y*y:
    print("No")
elif x+r > W or y+r > H or r*r > (W-x)**2 + (H-y)**2:
    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 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:
nums = list(map(int, input().split(" ")))

w, h = nums[0], nums[1]
x, y = nums[2], nums[3]
r = nums[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())
rx1 = x + r
rx2 = x - r
ry1 = y + r
ry2 = y - r

if rx1 <= W and rx1 >= 0:
    if rx2 <= W and rx2 >= 0:
        if ry1 <= H and ry1 >= 0:
            if ry2 <= H and ry2 >= 0:
                print("Yes")
                exit()
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:
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 and x+r<=W and y>=r and y+r<=H):
   print("Yes")
elif(x<r or x+r>W or y<r or y+r>H):
   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:
nums = [int(e) for e in input().split()]
W = nums[0]
H = nums[1]
x = nums[2]
y = nums[3]
r = nums[4]
if 0 + r <= x and 0 + r <= y and W - r >= x  and H - r >= y:
    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])
#インプットデータの判別
#x-rが0より小さい、またはx+rがWより大きいならばNO
#x-r0以上、かつwLrがW以下ならばYesと判断
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-x)>=r and (H-y)>=r and x>0 and y>0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

# x 座標

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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 = (int(x) for x in 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 = 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 = list(map(int, input().split()))

cnt = 0
high = a[0]
low = a[1]
origin = 0
b = [a[2]+a[4], a[3]+a[4]]
for i in b:
    if high < i:
        print('No')
        break
    elif low < i:
        print('No')
        break
    elif origin > i - a[4] * 2:
        print('No')
        break
    else:
        cnt += 1
    
if cnt == 2:
    print('Yes')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import math
W,H,x,y,r = (int(x) for x in 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 = [int(x) for x in input().split()]

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

Submission status: Accepted

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

if x < 0 or y < 0:
    print('No')
elif (x+r) <= W 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 y-r<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 = 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 -100 <= x <= 100 and -100 <= y <= 100 and 0 < W <= 100 and 0 < H <= 100 and 0 < r <= 100:
    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_line = input().split(" ")
W = int(input_line[0])
H = int(input_line[1])
x = int(input_line[2])
y = int(input_line[3])
r = int(input_line[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 r <= x <= w-r and r <= y <= h-r:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def test():

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

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


if __name__ == "__main__":
	test()

Submission status: Accepted

Solution code:
# coding: utf-8

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

Submission status: Accepted

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

#row column:boolean
row = (r<=x)and(x<=W-r)
column = (r<=y)and(y<=H-r)

if row and column:
    print("Yes")
else:
    print("No")

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
# W, H, x, y, r
nums = list(map(lambda x: int(x), sys.stdin.readline().split(' ')))
W = nums[0]
H = nums[1]
x = nums[2]
y = nums[3]
r = nums[4]

if x - r < 0 or x + r < 0 or y - r < 0 or y + r < 0:
  ret = 'No'
elif x - r > W or x + r > W or y - r > H or y + r > H:
  ret = 'No'
else:
  ret = 'Yes'

print(ret)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = input().split(' ')
l = list(map(int, l))
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, raw_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 = [int(i) for i in input().split()]

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
w, h, x, y, r = map(int, input().split())
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:
args = input().split()

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def inRect(W, H, x, y, r):
    if not (0 <= x-r <= x+r <= W):
        return False

    if not (0 <= y-r <= y+r <= H):
        return False

    return True

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

Submission status: Accepted

Solution code:
def is_inside(l: int, c: int, r: int) -> bool:
    return (0 <= c - r) & (c + r <= l)


if __name__ == "__main__":
    w, h, a, b, r = map(lambda x: int(x), input().split())
    if (is_inside(w, a, r) & is_inside(h, b, r)):
        print("Yes")
    else:
        print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if x>=r and y>=r and W-r>=x and H-r>=y:
    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:
# coding: utf-8
# Your code here!
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:
#入力した文字を変数に格納する
input_number=input()

array=input_number.split()

#整数型に変換を行う
W=int(array[0])
H=int(array[1])
x=int(array[2])
y=int(array[3])
r=int(array[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:
l = list(map(int, input().split()))
W = l[0]
H = l[1]
x = l[2]
y = l[3]
r = l[4]
if r <= x <= W - r and r <= y <= H - r:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w,h,x,y,r = map(int, input().split())
print('Yes') if w - r >= x >= r and h - r >= y >= r 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:
A = [int(i) for i in input().split()]

if A[2]-A[4] < 0 or A[0] < A[2]+A[4] or A[3]-A[4]< 0 or A[1] < A[3]+A[4]:
	print("No")
else:
	print("Yes")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
W,H,x,y,r = 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 = 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 r <= x and x <= w-r and r <= y and y <= h-r:
	print('Yes')
else:
	print('No')