ZhenlongDai/ACPR huggingface dataset:
Problem: p02689
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N, M = map(int, input().split())
H = list(map(int, input().split()))

DP =[0]*N
for i in range(M):
  A, B = map(int, input().split())
  if H[A-1] > H[B-1]:
    DP[A-1] = 1
  else:
    DP[B-1] = 1
ans = DP.count(1)
print(ans)

Failing test case input:
4 3
1 2 1 4
1 3
3 3
2 4

Expected output:
1


Actual output:
2


Fixed submission (verdict: Accepted):
N, M = map(int, input().split())
H = list(map(int, input().split()))

DP =[1]*N
for i in range(M):
  A, B = map(int, input().split())
  if H[A-1] > H[B-1]:
    if DP[A-1]!=-1:
	    DP[A-1] = 1
    DP[B-1] = -1
  elif H[B-1] > H[A-1]:
    if DP[B-1]!=-1:
	    DP[B-1] = 1
    DP[A-1] = -1
  else:
    DP[A-1] = -1
    DP[B-1] = -1
ans = DP.count(1)
print(ans)

Problem: p02689
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n,m = map(int,input().split())
h = list(map(int,input().split()))
ans = [1] * n
for i in range(m):
  a,b, = map(int,input().split())
  if h[a-1] >= h[b-1]:
    ans[b-1] =0
  if h[a-1] <= h[b-1]:
    ans[a-1] = 0
  print(ans)
print(sum(ans))

Failing test case input:
6 5
8 6 6 1 2 1
1 3
4 2
4 3
4 6
4 6

Expected output:
3


Actual output:
[1, 1, 0, 1, 1, 1]
[1, 1, 0, 0, 1, 1]
[1, 1, 0, 0, 1, 1]
[1, 1, 0, 0, 1, 0]
[1, 1, 0, 0, 1, 0]
3


Fixed submission (verdict: Accepted):
n,m = map(int,input().split())
h = list(map(int,input().split()))
ans = [1] * n
for i in range(m):
  a,b, = map(int,input().split())
  if h[a-1] >= h[b-1]:
    ans[b-1] =0
  if h[a-1] <= h[b-1]:
    ans[a-1] = 0
print(sum(ans))

Problem: p02689
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N, M = map(int, input().split())
H = list(map(int, input().split()))
good = [0]*N

for i in range(M):
    A, B =map(int, input().split())
    if H[A-1] < H[B-1]:
        good[A-1] = 1
    else:
        good[B-1] = 1

print(good.count(0))

Failing test case input:
4 2
2 7 2 5
1 4
3 1
0 4

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
N, M = map(int, input().split())
H = list(map(int, input().split()))
good = [0]*N

for i in range(M):
    A, B =map(int, input().split())
    if H[A-1] < H[B-1]:
        good[A-1] = 1
    elif H[A-1] == H[B-1]:
        good[A-1] = 1
        good[B-1] = 1
    else:
        good[B-1] = 1

print(good.count(0))

Problem: p02689
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n, m = map(int, input().split())
l = list(map(int, input().split()))
delist = list(range(1,n+1))
for i in range(m):
    a,b = map(int, input().split())
    if l[a-1] >= l[b-1]:
        if b in delist:
            delist.remove(b)
    else:
        if a in delist:
            delist.remove(a)
print(len(delist))
        

Failing test case input:
6 5
8 6 9 1 4 1
1 3
4 0
4 0
4 6
4 6

Expected output:
3


Actual output:
4


Fixed submission (verdict: Accepted):
n, m = map(int, input().split())
l = list(map(int, input().split()))
delist = set(range(1,n+1))
for i in range(m):
    a,b = map(int, input().split())
    if l[a-1] >= l[b-1]:
        delist.discard(b)
    if l[a-1] <= l[b-1]:
        delist.discard(a)
print(len(delist))
Problem: p02689
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n, m = map(int, input().split())
h = [int(i) for i in input().split()]

load = [list(map(int, input().split())) for _ in range(m)]

result = {i: 0 for i in range(n)}

for l in load:
    a, b = l[0]-1, l[1]-1
    
    if h[a] <= h[b]:
        result[b] = 1


print(sum(result.values()))


Failing test case input:
4 3
1 2 3 5
1 3
3 3
2 4

Expected output:
1


Actual output:
2


Fixed submission (verdict: Accepted):
n, m = map(int, input().split())
h = [int(i) for i in input().split()]
load = [list(map(int, input().split())) for _ in range(m)]
result = {i: 1 for i in range(n)}

for l in load:
    a, b = l[0] - 1, l[1] - 1
    if h[a] < h[b]:
        result[a] = 0
    elif h[a] > h[b]:
        result[b] = 0
    elif h[a] == h[b]:
        result[a] = 0
        result[b] = 0

print(sum(result.values()))

Problem: p02689
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N, M = (int(x) for x in input().split())
H = list(map(int, input().split()))

GT = [0 for i in range(N)]

for i in range(M):
    A, B = (int(x) for x in input().split())
    if H[A-1] != H[B-1]:
        L = max(H[A-1], H[B-1])
        GT[H.index(L)] = 1
    
print(sum(GT))

Failing test case input:
4 1
2 4 3 1
1 3
3 3
4 4

Expected output:
3


Actual output:
1


Fixed submission (verdict: Accepted):
N, M = (int(x) for x in input().split())
H = list(map(int, input().split()))

HT = [0 for i in range(N)]

for i in range(M):
    A, B = (int(x) for x in input().split())
    HT[A-1] = max(HT[A-1], H[B-1])
    HT[B-1] = max(HT[B-1], H[A-1])
    
count = 0

for i in range(N):
    count += H[i] > HT[i]

print(count)
Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
All=input().split()
W=int(All[0])
H=int(All[1])
x=int(All[2])
y=int(All[3])
r=int(All[4])
if x+r<W and x-r>0 and y+r<H and y-r>0:
    print('Yes')
else:
    print('No')

Failing test case input:
2 13 3 2 -1

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
All=input().split()
W=int(All[0])
H=int(All[1])
x=int(All[2])
y=int(All[3])
r=int(All[4])
if x+r<=W and x-r>=0 and y+r<=H and y-r>=0:
    print('Yes')
else:
    print('No')

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
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")

Failing test case input:
-2 1 6 8 -9

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
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")

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
W,H,x,y,r=map(int,input().split())
if r<=x<=H-r and r<=y<=W-r:
 print("Yes")
else: print("No")

Failing test case input:
2 13 8 2 -1

Expected output:
No


Actual output:
Yes


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

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
W,H,x,y,r = map(int,(input().split()))
print (W,H,x,y,r)

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

Failing test case input:
0 12 1 0 0

Expected output:
No


Actual output:
0 12 1 0 0
No


Fixed submission (verdict: Accepted):
W,H,x,y,r = map(int,(input().split()))

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

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
W,H,x,y,r=map(int,input().split())
print('No'if x+r>W or y+r>H else'Yes')

Failing test case input:
1 7 1 -1 0

Expected output:
No


Actual output:
Yes


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

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
W,H,x,y,r=[int(x) for x in input().split()]
if r<x<(W-r) and r<y<(H-r):
    print('Yes')
else:
    print('No')

Failing test case input:
2 13 3 2 -1

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
W,H,x,y,r=[int(x) for x in input().split()]
if r<=x<=(W-r) and r<=y<=(H-r):
    print('Yes')
else:
    print('No')

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
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')

Failing test case input:
5 4 2 0 1

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
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')
Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
W,H,x,y,r = (int(i) for i in input().split())
answer = "Yes"

if x - r <= 0 :
    answer = "No"
elif y - r <= 0 :
    answer = "No"
elif x + r >= W :
    answer = "No"
elif y + r >= H :
    answer = "No"

print(answer)

Failing test case input:
1 12 1 0 0

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
W,H,x,y,r = (int(i) for i in input().split())
answer = "Yes"

if x - r < 0 :
    answer = "No"
elif y - r < 0 :
    answer = "No"
elif x + r > W :
    answer = "No"
elif y + r > H :
    answer = "No"

print(answer)

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
w, h , x ,y ,r = map(int,input().split())

xLong = x+r
yLong = y+r

if(xLong == 0 and yLong == 0):
    print('Yes') 
elif(xLong <= w and yLong <= h):
    print('Yes')
else:
    print('No')



Failing test case input:
1 5 1 -2 0

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
w, h , x ,y ,r = map(int,input().split())

xLongLeft = x-r
xLongRight = x + r

yLongTop = y + r
yLongBot = y - r

if((xLongLeft >= 0 and yLongBot >= 0) and (xLongRight <= w and yLongTop <= h)):
   print('Yes')
else:
   print('No')

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
w,h,x,y,r =[int(i) for i in input().split()]

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

Failing test case input:
1 12 1 0 0

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
w,h,x,y,r =[int(i) for i in input().split()]

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

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
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') 

Failing test case input:
2 12 1 0 0

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
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')

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):


def main():
	nums = input().split(" ") 
	width, height, x, y, r =[int(i) for i in nums]
	if 0 < x - r and x + r < width and 0 < y - r and y + r < height:
		return "Yes"
	else:
		return "No"
if __name__ == '__main__':
  print(main())

Failing test case input:
2 12 1 0 0

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):


def main():
	nums = input().split(" ") 
	width, height, x, y, r =[int(i) for i in nums]
	if 0 <= x - r and x + r <= width and 0 <= y - r and y + r <= height:
		return "Yes"
	else:
		return "No"
if __name__ == '__main__':
  print(main())
Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
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")



Failing test case input:
-2 1 6 3 -9

Expected output:
Yes


Actual output:
True


Fixed submission (verdict: Accepted):
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")

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
W,H,x,y,r= map(int, input().split(' '))
if x-r>=0 and y-r>=0:
   if y+r<=W and y+r<=H:
     print('Yes')
   else:
     print('No')
else:
  print('No')
     

Failing test case input:
0 2 10 0 -1

Expected output:
No


Actual output:
Yes


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

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
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")



Failing test case input:
1 7 1 0 0

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
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")

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
a=list(map(int,input().split()))

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

Failing test case input:
-2 0 0 10 -18

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
a=list(map(int,input().split()))

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

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
w,h,x,y,r = map(int, input().split())

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


Failing test case input:
-1 2 11 1 -6

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
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')

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
nums = input().split()
W = int( nums[0])
H = int( nums[1])
x = int( nums[2])
y = int( nums[3])
r = int( nums[4])
  
if (x - r) >= 0 or (x + r) <= W:
    if (y - r) >= 0 and (y + r) <= H:
        print( "Yes")
    else:
        print( "No")
else:
    print( "No")

Failing test case input:
-2 2 6 2 -6

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
nums = input().split()
W = int( nums[0])
H = int( nums[1])
x = int( nums[2])
y = int( nums[3])
r = int( nums[4])
  
if (x - r) >= 0 and (x + r) <= W:
    if (y - r) >= 0 and (y + r) <= H:
        print( "Yes")
    else:
        print( "No")
else:
    print( "No")
Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
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")


Failing test case input:
-2 1 3 10 -9

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
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")

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):


import sys, math, os


PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")

def circle_in_rectangle(W, H, x, y, r):
    return W >= 2 * r and x >= r and x <= W - r and \
           H >= 2 * y and y >= r and y <= H - r
    
W, H, x, y, r = [int(_) for _ in input().split()]
print("Yes" if circle_in_rectangle(W, H, x, y, r) else "No")

Failing test case input:
-2 -1 0 6 -18

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):


import sys, math, os


PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input3.txt", "rt")

def circle_in_rectangle(W, H, x, y, r):
    return W >= 2 * r and x >= r and x <= W - r and \
           H >= 2 * r and y >= r and y <= H - r
    
W, H, x, y, r = [int(_) for _ in input().split()]
print("Yes" if circle_in_rectangle(W, H, x, y, r) else "No")

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
All=input().split()
W=int(All[0])
H=int(All[1])
x=int(All[2])
y=int(All[3])
r=int(All[4])
if x+r<W and x+r>0 and y+r<H and y+r>0:
    print('Yes')
else:
    print('No')

Failing test case input:
-2 -1 0 10 -18

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
All=input().split()
W=int(All[0])
H=int(All[1])
x=int(All[2])
y=int(All[3])
r=int(All[4])
if x+r<=W and x-r>=0 and y+r<=H and y-r>=0:
    print('Yes')
else:
    print('No')

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
All=input().split()
W=int(All[0])
H=int(All[1])
x=int(All[2])
y=int(All[3])
r=int(All[4])
if x+r<W and y+r<H:
    print('Yes')
else:
    print('No')

Failing test case input:
2 18 2 1 0

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
All=input().split()
W=int(All[0])
H=int(All[1])
x=int(All[2])
y=int(All[3])
r=int(All[4])
if x+r<=W and x-r>=0 and y+r<=H and y-r>=0:
    print('Yes')
else:
    print('No')

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
w, h, x, y, r = [int(n) for n in input().split()]

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

Failing test case input:
5 4 2 0 1

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
w, h, x, y, r = [int(n) for n in input().split()]

if x+r > w or y+r > h or x-r < 0 or y-r < 0:
  print("No")
else:
  print("Yes")
Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
W, H, x, y, r = list(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')

Failing test case input:
-2 1 6 8 -9

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
W, H, x, y, r = list(map(int, input().split()))
if 0 <= x-r and 0<=y-r and x+r<=W and y+r<=H :
    print('Yes')
else:
    print('No')

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
def cinr(i):
    tmp = (i.split(" "))
    W = int(tmp[0])
    H = int(tmp[1])
    x = int(tmp[2])
    y = int(tmp[3])
    r = int(tmp[4])

    if x >= 0 + r and x <= W - r and y >= 0 + r and y <= H  - r:
        print("YES")
    else:
        print("NO")
    return 0

if __name__ == "__main__":
    ret = cinr(input())


Failing test case input:
-2 1 6 6 -9

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
def cinr(i):
    tmp = (i.split(" "))
    W = int(tmp[0])
    H = int(tmp[1])
    x = int(tmp[2])
    y = int(tmp[3])
    r = int(tmp[4])

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

if __name__ == "__main__":
    ret = cinr(input())

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
W,H,x,y,r = (int(i) for i in input().split())
if W-(x+r) >= 0 and H-(y+r) >= 0:
    print("Yes")
else:
    print("No")

Failing test case input:
5 4 2 0 1

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
W,H,x,y,r = (int(i) for i in input().split())
if W-(x+r) >=0 and H-(y+r) >= 0:
    if x-r >= 0 and y-r >= 0:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):


W, H, x, y, r = [int(x) for x in input().strip().split(' ')]

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

Failing test case input:
-2 1 3 10 -18

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):


W, H, x, y, r = [int(x) for x in input().strip().split(' ')]

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

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):



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

res = 'No'

if(r < x < W-r):
    
    if(r < y < H-r):
        res = 'Yes'
print(res)

Failing test case input:
-2 1 3 10 -9

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):



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

res = 'No'

if(r <= x <= W-r):
    
    if(r <= y <= H-r):
        res = 'Yes'
print(res)

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
w,h,x,y,r=map(int,input().split())
if 0+r<=x<=h+r and 0+r<=y<=w+r:
	print("Yes")
else:
	print("No")

Failing test case input:
-2 1 6 6 -9

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
w,h,x,y,r=map(int,input().split())
if (r<=x<=(w-r))and(r<=y<=(h-r)):
	print("Yes")
else:
	print("No")
Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
aa = input().split()

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

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

Failing test case input:
-2 0 0 10 -18

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
zz = input().split()

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

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

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
def main():
    n = input().split()

    w = int(n[0])
    h = int(n[1])
    x = int(n[2])
    y = int(n[3])
    r = int(n[4])
    L = x - r
    T = y - r
    R = x + r
    B = y + r

    if (L >= 0 or w <= R) and (T <= 0 or h >= B):
        print("Yes")
    else:
        print("No")

if __name__ == '__main__':
    main()

Failing test case input:
2 13 6 4 -1

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
def main():
    n = input().split()

    w = int(n[0])
    h = int(n[1])
    x = int(n[2])
    y = int(n[3])
    r = int(n[4])
    L = x - r
    T = y - r
    R = x + r
    B = y + r

    x_ans = (L >= 0 and R <= w)
    y_ans = (T >= 0 and B <= h)

    if x_ans and y_ans:
        print("Yes")
    else:
        print("No")

if __name__ == '__main__':
    main()

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
W, H, x, y, r = map(int, input().split())
if (x-r) < 0 or (x+r) > W:
    print("No")
elif (x-r) and 0 or (x+r) < W:
    print("Yes")
else:
    print("No")

Failing test case input:
2 8 2 0 0

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
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")

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
W,H,x,y,r = map(int,input().split())



if x-r<0 and W<x-r and y-r<0 and h<y-r: print('No')

else: print('Yes')



Failing test case input:
0 1 4 1 -1

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
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')

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
h, w, 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")



Failing test case input:
2 8 1 0 0

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
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")
Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
W,H,x,y,r = map(int,input().split())
if(x+r <= W)and(y+r <= H):
    print("Yes")
else:
    print("No")


Failing test case input:
5 4 2 0 1

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
W,H,x,y,r = map(int,input().split())

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

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
W,H,x,y,r = map(int,input().split())



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

else: print('Yes')



Failing test case input:
-6 -2 -1 18 -2

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
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')

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):



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

Failing test case input:
2 18 2 0 0

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):



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

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
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("YES")
else:
    print("YES")



Failing test case input:
2 27 9 4 -1

Expected output:
No


Actual output:
YES


Fixed submission (verdict: Accepted):
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")

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
W, H, x, y, r= map(int, input().split())
edgeleft = x - r
edgeright = x + r
edgetop = y + r
edgebottom = y - r
if (edgeleft <= 0) | (edgeright >= W):
    answer = "No"
elif (edgetop >= H) | (edgebottom <= 0):
    answer = "No"
else:
    answer = "Yes"

print(answer)



Failing test case input:
-2 1 3 10 -9

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
W, H, x, y, r= map(int, input().split())
edge_left = x - r
edge_right = x + r
edge_top = y + r
edge_bottom = y - r
if (edge_left < 0) | (edge_right > W):
    answer = "No"
elif (edge_top > H) | (edge_bottom < 0):
    answer = "No"
else:
    answer = "Yes"

print(answer)

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
def main(arg):
    arg = str(arg)
    w, h, x, y, r = [int(x)for x in arg.split(" ")]
    if (y+r) < w and (x+r) < h and r < x and r < y:
        return "Yes"
    return "No"

if __name__ == '__main__':
    print(main(input()))

Failing test case input:
-2 1 3 10 -9

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
def main(arg):
    arg = str(arg)
    w, h, x, y, r = [int(x)for x in arg.split(" ")]
    if (y+r) <= h and (x+r) <= w and r <= x and r <= y:
        return "Yes"
    return "No"

if __name__ == '__main__':
    print(main(input()))
Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
(W, H, x, y, r) = [int(i) for i in input().split()]

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

Failing test case input:
-2 1 3 10 -9

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
(W,H,x,y,r) = [int(i) for i in input().split()]

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

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
W, H, x, y, r = list(map(int, input().split()))

x_right = x + r
x_left = x - r
y_up = y + r
y_down = y - r

if x_right <= W & x_left >= 0 & y_up <= H & y_down >= 0:
    print("Yes")
else:
    print("No")



Failing test case input:
-2 2 6 2 -6

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
W, H, x, y, r = list(map(int, input().split()))

x_right = x + r
x_left = x - r
y_up = y + r
y_down = y - r

if x_right <= W and x_left >= 0 and y_up <= H and y_down >= 0:
    print("Yes")
else:
    print("No")

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
n=input().split(" ")
w=int(n[0])
h=int(n[1])
x=int(n[2])
y=int(n[3])
r=int(n[4])
if w>h and h>x and x>y and y>r:
  print("Yes")
else:
   print("No")


Failing test case input:
2 8 1 0 0

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n=input().split()
w=int(n[0])
h=int(n[1])
x=int(n[2])
y=int(n[3])
r=int(n[4])
if (r <= x) & (x + r <= w) & (r <= y) & (r + y <= h):
   print("Yes")
else:
   print("No")

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
W,H,x,y,r = (int(i) for i in input().split())
if W-x+r >= 0 and H-y+r >= 0:
    print("Yes")
else:
    print("No")

Failing test case input:
2 8 2 0 1

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
W,H,x,y,r = (int(i) for i in input().split())
if W-(x+r) >=0 and H-(y+r) >= 0:
    if x-r >= 0 and y-r >= 0:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
w,h,x,y,r=map(int, input().split())

x_max=int(x+r)
x_min=int(x-r)
y_max=int(y+r)
y_min=int(y-r)




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

Failing test case input:
-1 2 6 1 -6

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
w,h,x,y,r=map(int, input().split())

x_max=int(x+r)
x_min=int(x-r)
y_max=int(y+r)
y_min=int(y-r)




if y_max > h:
    print("No")
else:
    if y_min < 0:
        print("No")
    else:
        if x_max > w:
            print("No")
        else:
            if x_min < 0:
                print("No")
            else:
                print("Yes")
Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
x = input()
y = x.split(" ")
y = [int(z) for z in y]
w = y[0]
h = y[1]
x = y[2]
r = y[4]
y = y[3]
if (x < w-r and x > r) and (y < h-r and y > r):
    print("Yes")
else:
    print("No")

Failing test case input:
2 18 2 1 0

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
x = input()
y = x.split(" ")
y = [int(z) for z in y]
w = y[0]
h = y[1]
x = y[2]
r = y[4]
y = y[3]
if (x <= w-r and x >= r) and (y <= h-r and y >= r):
    print("Yes")
else:
    print("No")

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
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")



Failing test case input:
-2 1 3 8 -9

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
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")

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
def main(arg):
    arg = str(arg)
    w, h, x, y, r = [int(x)for x in arg.split(" ")]
    if (y+r) <= w and (x+r) <= h and r <= x and r <= y:
        return "Yes"
    return "No"

if __name__ == '__main__':
    print(main(input()))

Failing test case input:
5 4 2 4 1

Expected output:
No

Actual output:
Yes


Fixed submission (verdict: Accepted):
def main(arg):
    arg = str(arg)
    w, h, x, y, r = [int(x)for x in arg.split(" ")]
    if (y+r) <= h and (x+r) <= w and r <= x and r <= y:
        return "Yes"
    return "No"

if __name__ == '__main__':
    print(main(input()))

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
in_str = input().split(" ")
in_width = int(in_str[0])
in_hight = int(in_str[1])

in_x = int(in_str[2])
in_y = int(in_str[3])
in_r = int(in_str[4])


if 0 <= in_x - in_r & in_x + in_r <= in_width:
    
    if 0 <= in_y - in_r & in_y + in_r <= in_hight:
        print("Yes")
    else:
        pass
else:
    print("No")

Failing test case input:
4 21 8 4 2

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
in_str = input().split(" ")
in_width = int(in_str[0])
in_hight = int(in_str[1])

in_x = int(in_str[2])
in_y = int(in_str[3])
in_r = int(in_str[4])


if (0 <= in_x - in_r) & (in_x + in_r <= in_width):
    
    if (0 <= in_y - in_r) & (in_y + in_r <= in_hight):
        print("Yes")
    else:
        print("No")
else:
    print("No")
Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
import sys

input_list = input().split(" ")
input_list = list(map(int, input_list))

w = input_list[0]
h = input_list[1]
x = input_list[2]
y = input_list[3]
r = input_list[4]

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

print("No")

Failing test case input:
-2 1 3 10 -9

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
import sys

input_list = input().split(" ")
input_list = list(map(int, input_list))

w = input_list[0]
h = input_list[1]
x = input_list[2]
y = input_list[3]
r = input_list[4]

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

print("No")

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):



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

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



Failing test case input:
-2 1 3 8 -9

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):



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

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

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
W,H,x,y,r=map(int,input().split())
if 0<=x+r<=W and 0<=y+r<=H:
    print("Yes")
else:
    print("No")

Failing test case input:
-2 -1 0 6 -18

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
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")

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
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")

Failing test case input:
-2 2 6 2 -9

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
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")

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
W,H,x,y,r=map(int,input().split())
if W-x>=r&x>=r&H-y>=r&y>=r:
 print('Yes')
else:
 print('No')

Failing test case input:
-2 -1 0 6 -18

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
W,H,x,y,r=map(int,input().split())
if W-x>=r and x>=r and H-y>=r and y>=r:
 print('Yes')
else:
 print('No')

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
w,h,x,y,r=map(int,input().split())
if w-r>=x and h-r>=y:
    print('Yes')
else:
    print('No')


Failing test case input:
5 8 2 0 1

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
w,h,x,y,r=map(int,input().split())
if w-r>=x and h-r>=y and x>=r and y>=r:
    print('Yes')
else:
    print('No')
Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
W,H,x,y,r = [int(i) for i in input().split()]
if (r <= x <= (W - r)) and (r <= y <= (H - r)):
    print('Yes')
else:
    print('NO')

Failing test case input:
4 21 7 4 1

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
a=input().split()
b=list(map(int,a))
W=b[0]
H=b[1]
x=b[2]
y=b[3]
r=b[4]
if (r <= x <= (W - r)) and (r <= y <= (H - r)):
  print('Yes')
else:
  print('No')

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
nums = input().split()

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

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

Failing test case input:
-2 1 3 10 -18

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
zz = input().split()

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

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

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
(W, H, x, y, r) = [int(i) for i in input().rstrip().split()]

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

Failing test case input:
1 7 1 -2 0

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
(W, H, x, y, r) = [int(i) for i in input().rstrip().split()]

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

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
W,H,x,y,r = map(int,(input().split()))
print (W,H,x,y,r)

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

Failing test case input:
1 7 1 -1 0

Expected output:
No


Actual output:
1 7 1 -1 0
No


Fixed submission (verdict: Accepted):
W,H,x,y,r = map(int,(input().split()))

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

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
w,h,x,y,r = map(int, input().split())
if r <= x <= w-r and r <= y <= h:
	print("Yes")
else:
	print("No")

Failing test case input:
-2 1 3 10 -18

Expected output:
Yes


Actual output:
No


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

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
import sys

W, H, x, y, r = map(int, sys.stdin.readline().split())
if((r < x < W-r) and (r < y < H-r)):
    print("Yes")
else:
    print("No")

Failing test case input:
2 13 3 2 -1

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
import sys

W, H, x, y, r = map(int, sys.stdin.readline().split())
if((r <= x <= W-r) and (r <= y <= H-r)):
    print("Yes")
else:
    print("No")
Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
n=input().split(" ")
w=int(n[0])
h=int(n[1])
x=int(n[2])
y=int(n[3])
r=int(n[4])
if w>=h and h>=x and x>=y and y>=r:
   print("Yes")
else:
   print("No")


Failing test case input:
2 18 2 0 0

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n=input().split()
w=int(n[0])
h=int(n[1])
x=int(n[2])
y=int(n[3])
r=int(n[4])
if (r <= x) & (x + r <= w) & (r <= y) & (r + y <= h):
   print("Yes")
else:
   print("No")

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
W,H,x,y,r = map(int, input().split())
if W < (x+r) and H < (y + r) and 0 > (x+r) and 0 > (y+r) :
  print("No")
else :
  print("Yes")


Failing test case input:
5 4 2 4 1

Expected output:
No

Actual output:
Yes


Fixed submission (verdict: Accepted):
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")

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
W,H,x,y,r = map(int, input().split())
if W > (x+r) and H > (y + r) and 0 <= (x+r) and 0 <= (y+r) :
  print("Yes")
else :
  print("No")


Failing test case input:
-2 1 6 8 -9

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
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")

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
W,H,x,y,r=map(int,input().split())
if y+r<=H and y>r and x+r<W and x>r:
    print("Yes")
else:
    print("No")


Failing test case input:
2 8 1 0 0

Expected output:
Yes


Actual output:
No


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

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
W, H, x, y, r = [int(t) for t in input().split()]
if 0 < (x - r) and (x + r) < W and 0 < (y - r) and (y + r) < H :
    print('Yes')
else :
    print('No')


Failing test case input:
1 12 1 0 0

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
W, H, x, y, r = [int(t) for t in input().split()]
if (x - r) < 0 or W < (x + r) or (y - r) < 0 or H < (y + r) :
    print('No')
else :
    print('Yes')

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
W,H,x,y,r = map(int,input().split())
if (x,y)<(W,H) == True:
    if(x+r <= W)and(y+r <= H):
        print("Yes")
else:
    print("No")


Failing test case input:
-2 1 6 3 -9

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
W,H,x,y,r = map(int,input().split())

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

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
W,H,x,y,r = map(int, input().split())
 
if r <= x and x <= W and r <= y and y <= H:
 print('Yes')
else:
 print('No')

Failing test case input:
-2 1 6 3 -9

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
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')
Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
W, H, x, y, r = [int(i) for i in "5 4 2 2 1".split()]
if r < x < W-r and r < y < H - r:
    print("Yes")
else:
    print("No")

Failing test case input:
1 5 2 -1 1

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
W, H, x, y, r = [int(i) for i in input().split()]
if r <= x <= W - r and r <= y <= H - r:
    print("Yes")
else:
    print("No")

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
w,h,x,y,r = input().split()
w = int()
h = int()
x = int()
y = int()
r = int()
if x - r >= 0 and y - r >= 0 and x + r <= w and y + r <= h:
    print("Yes")
else:
    print("No")


Failing test case input:
2 27 6 4 -1

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
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")

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
w, h, x, y, r = map(int, input().split())

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

Failing test case input:
5 4 2 4 1

Expected output:
No

Actual output:
Yes


Fixed submission (verdict: Accepted):
w, h, x, y, r = map(int, 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")

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
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")



Failing test case input:
-2 2 6 3 -9

Expected output:
Yes


Actual output:
yes


Fixed submission (verdict: Accepted):
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")

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
W,H,x,y,r=[int(i) for i in input().split()]
if x-r>=0 and x-r>=0 and x+r<=W and y+r<=H:
    print("Yes")
else:
    print("No")

Failing test case input:
5 8 2 0 1

Expected output:
No


Actual output:
Yes


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

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
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")



Failing test case input:
-3 -1 0 6 -18

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
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")
Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):

w, h, x, y, r = [int(x) for x in input().split()]

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

Failing test case input:
1 5 1 -2 0

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):

w, h, x, y, r = [int(x) for x in input().split()]

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

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
def in_rectangle(w, h, x, y, r):
    
    left = x - r
    right = x + r
    floor = y - r
    ceil = y + r

    if 0 < left and right < w and 0 < floor and ceil < h:
        return True

    return False

w, h, x, y, r = map(int, input().split())
if in_rectangle(w, h, x, y, r):
    print("Yes")
else:
    print("No")

Failing test case input:
2 12 1 0 0

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
def in_rectangle(w, h, x, y, r):
    
    left = x - r
    right = x + r
    floor = y - r
    ceil = y + r

    if 0 <= left and right <= w and 0 <= floor and ceil <= h:
        return True

    return False

w, h, x, y, r = map(int, input().split())
if in_rectangle(w, h, x, y, r):
    print("Yes")
else:
    print("No")

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
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")

Failing test case input:
2 8 1 0 0

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
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")

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
w,h,x,y,r = map(int, input().split())

if x-r <= 0:
    print("No")
else:
    print("Yes")
    


Failing test case input:
5 4 2 0 1

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
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")

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
l = list(map(int, input().split()))
W = l[0]
H = l[1]
x = l[2]
y = l[3]
r = l[4]

left_x = x - r
right_x = x + r
top_y = y + r
bottom_y = y - r

if left_x >= W and right_x <= W and top_y <= H and bottom_y >= H:
    print("Yes")
else:
    print("No")


Failing test case input:
2 8 1 0 0

Expected output:
Yes


Actual output:
No


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

left_x = x - r
right_x = x + r
top_y = y + r
bottom_y = y - r

if left_x >= 0 and right_x <= W and top_y <= H and bottom_y >= 0:
    print("Yes")
else:
    print("No")
Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):


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

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




Failing test case input:
1 12 1 0 0

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):


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

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

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
W,H,x,y,r=map(int,input().split())
if x+r>W or y+r>H:
    if  x-r < 0 or y-r<0:
        print("No")
else:
    print("Yes")                                   

Failing test case input:
4 21 7 4 1

Expected output:
No


Actual output:

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

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
w, h, x, y, r = list(map(int, input().split()))
if x + r < w and x - r > 0 and y + r < h and y - r > 0:
    print("Yes")
else:
    print("No")

Failing test case input:
2 18 2 0 0

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
w, h, x, y, r = list(map(int, input().split()))
if x + r <= w and x - r >= 0 and y + r <= h and y - r >= 0:
    print("Yes")
else:
    print("No")

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
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")

Failing test case input:
1 12 1 0 0

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
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")

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
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")




Failing test case input:
2 13 3 2 -1

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
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")

Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
import sys
(W, H, x, y, r) = [int(i) for i in sys.stdin.readline().split()]
if r <= x <= W - r and r <= y <= H:
    print("Yes")
else:
    print("No")

Failing test case input:
-2 1 3 10 -9

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
import sys
(W, H, x, y, r) = [int(i) for i in sys.stdin.readline().split()]
if r <= x <= W - r and r <= y <= H - r:
    print("Yes")
else:
    print("No")