ZhenlongDai/ACPR huggingface dataset:
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:
-2 1 6 8 -9

Expected output:
Yes


Actual output:
No


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

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

def main(input):
    Arr = []
    Arr = input.split()
    for i in range(5):
        Arr[i] = int(Arr[i])
    L = []
    L.append([0,0])
    L.append([Arr[0],Arr[1]])
    for i in range(0, 2, 1):
        for j in range(0,2,1):
            if(abs(L[i][j]-Arr[2+j]))<=Arr[4]:
                print('No')
                return
    print("Yes")

main(input())

Failing test case input:
0 9 2 1 -1

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):

def main(input):
    Arr = []
    Arr = input.split()
    for i in range(5):
        Arr[i] = int(Arr[i])
    L = []
    L.append([0,0])
    L.append([Arr[0],Arr[1]])
    for i in range(0, 2, 1):
        for j in range(0,2,1):
            if((-1)**(i-1)*(L[i][j]-Arr[2+j]))<Arr[4]:
                print('No')
                return
    print("Yes")

main(input())

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

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

Failing test case input:
2 13 3 2 -1

Expected output:
Yes


Actual output:
No


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

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

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

Failing test case input:
1 12 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])

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

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

    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:
-1 2 11 1 -6

Expected output:
No


Actual output:
-1 2 11 1 -6
NO


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

Failing test case input:
2 8 1 0 0

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
s=input()
W,H,x,y,r=map(int,s.split())
if(x-r>=0 and y-r>=0 and y+r<=H and x+r<=W):
    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:
2 6 2 2 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):
def parseSpaceDivideIntArgs(arg):
    tmpArr = arg.split()
    ret = []
    for s in tmpArr:
        ret.append(int(s))
    return ret


def getArr2SpaceDivideStr(arg):
    ret = ""
    isFirst = True
    for s in arg:
        if not isFirst:
            ret += ' '
        else:
            isFirst = False
        ret += str(s)
    return ret


instr = input()


instrSpl = parseSpaceDivideIntArgs(instr)
W = instrSpl[0]
H = instrSpl[1]
x = instrSpl[2]
y = instrSpl[3]
r = instrSpl[4]

xcod = W >= 2 * r + x
ycod = H >= 2 * r + y

if xcod & ycod:
    print("Yes")
else:
    print("No")



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

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
def parseSpaceDivideIntArgs(arg):
    tmpArr = arg.split()
    ret = []
    for s in tmpArr:
        ret.append(int(s))
    return ret


def getArr2SpaceDivideStr(arg):
    ret = ""
    isFirst = True
    for s in arg:
        if not isFirst:
            ret += ' '
        else:
            isFirst = False
        ret += str(s)
    return ret


instr = input()


instrSpl = parseSpaceDivideIntArgs(instr)
W = instrSpl[0]
H = instrSpl[1]
x = instrSpl[2]
y = instrSpl[3]
r = instrSpl[4]

xcod1 = x - r >= 0
xcod2 = x + r <= W
ycod1 = y - r >= 0
ycod2 = y + r <= H

if xcod1 and xcod2 and ycod1 and ycod2:
    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:
1 7 1 -2 0

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

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

print(x_max,x_min,y_max,y_min)


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

Failing test case input:
3 21 8 1 2

Expected output:
No


Actual output:
10 6 3 -1
No


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

else :
	print("No")

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

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
tmp = input()
tmp = tmp.split(" ")
W,H,x,y,r = list(map(int,tmp))
if x + r <= W and y + r <= H and x - r >= 0 and y - r  >= 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 18 2 1 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):
l = input().split()
l = list(map(int, l))

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

Failing test case input:
0 9 2 1 -1

Expected output:
No


Actual output:
Yes


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

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

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

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


Failing test case input:
2 18 2 0 0

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
WHxyr = input()
WHxyr_list = WHxyr.split(" ")
W = int(WHxyr_list[0])
H = int(WHxyr_list[1])
x = int(WHxyr_list[2])
y = int(WHxyr_list[3])
r = int(WHxyr_list[4])

if (x - r >= 0 and y - r >= 0) and (x + r <= W and y + r <= H):
    print("Yes")
else:
    print("No")
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 3 10 -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 = [int(i) for i in 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)

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

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 and x - r >= 0 and y - r >= 0:
    print('YES')
else:
    print('NO')



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

Expected output:
No


Actual output:
NO


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

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 2 6 2 -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 x+r<=W and y+r<=H:
    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=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):
s=input().rstrip().split(' ')
W=int(s[0])
H=int(s[1])
x=int(s[2])
y=int(s[3])
r=int(s[4])
cx=W-r
cy=H-r
if cx>=x & x>=r:
    if cy>=y & y>=r:
        print("Yes")
else:
    print("No")

Failing test case input:
5 8 2 0 1

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
s=input().rstrip().split(' ')
W=int(s[0])
H=int(s[1])
x=int(s[2])
y=int(s[3])
r=int(s[4])
cx=W-r
cy=H-r
if cx>=x & x>=r:
    if cy>=y & y>=r:
        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().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(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):
string = input()
numbers = string.split()
W = int(numbers[0])
H = int(numbers[1])
x = int(numbers[2])
y = int(numbers[3])
r = int(numbers[4])
if x-r>0 and y-r>0 and x+r<W and y+r<H:
    print('Yes')
else:
    print('No')


Failing test case input:
2 12 1 0 0

Expected output:
Yes


Actual output:
No


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

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:
1 7 1 -1 0

Expected output:
No


Actual output:
Yes


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


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

Expected output:
No


Actual output:

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

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:
-1 2 11 1 -6

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

import sys
 
WHxyr=sys.stdin.readline()
nums=WHxyr.split( ' ' )
for i in range( len( nums) ):
	nums[i] = int( nums[i] )
if (0 < nums[2]-nums[4]) and (nums[2]+nums[4] < nums[0]) and (0 < nums[3]-nums[4]) and (nums[3]+nums[4] < nums[1]):
	print( "Yes" )
else:
	print( "No" )

Failing test case input:
2 18 2 1 0

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):

import sys
 
WHxyr=sys.stdin.readline()
nums=WHxyr.split( ' ' )
for i in range( len( nums) ):
	nums[i] = int( nums[i] )
if (0 <= nums[2]-nums[4]) and (nums[2]+nums[4] <= nums[0]) and (0 <= nums[3]-nums[4]) and (nums[3]+nums[4] <= nums[1]):
	print( "Yes" )
else:
	print( "No" )
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 2 6 1 -6

Expected output:
No


Actual output:

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

Failing test case input:
5 4 2 2 1

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 x + r <= W and y + r <= 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())

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

Failing test case input:
2 12 1 0 0

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):
W, H, x, y, r = map(int, input().split())
if r < x < W - r and r < y < H - 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 = 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):
def main():
    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")
    if __name__ == '__main__' :
        main()

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

Expected output:
Yes


Actual output:

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

if __name__ == '__main__' :
    main()

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

Failing test case input:
2 27 7 4 0

Expected output:
No


Actual output:
Yes


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

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

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


if __name__ == '__main__':
    main()

Failing test case input:
4 21 7 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 w-x >= r and h-y >= r:
    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 = 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")

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:
1 7 1 -1 0

Expected output:
No


Actual output:
Yes


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

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

if r <= x < (W-r) and r <= y < (H-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):


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

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

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

Failing test case input:
2 54 7 4 0

Expected output:
No


Actual output:
No
Yes


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

if (x > r) and (x < (W-r)) and (y > r) and (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 = map(int,input().split(" "))

if (x >= r) and (x <= (W-r)) and (y >= r) and (y <= (H - r)):
	print("Yes")
else:
	print("No")
Problem: p02394
Buggy submission (Python3, verdict: Wrong Answer):
def pred(h, w, x, y, r):
    if x - r < 0 or y - r < 0 or x + r > w or y + r > h:
        return False
    else:
        return True

a = list(map(int, input().split()))

print("Yes" if pred(*a) else "No")

Failing test case input:
2 18 4 1 -1

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
def pred(w, h, x, y, r):
    if x - r < 0 or y - r < 0 or x + r > w or y + r > h:
        return False
    else:
        return True

a = list(map(int, input().split()))

print("Yes" if pred(*a) else "No")

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

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


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

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

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


Failing test case input:
1 13 6 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())
if x-r<0 or y-r<0 or x+r>W or y+r>H :
    print("NO")
else:
    print("NO")



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

Expected output:
No


Actual output:
NO


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(lambda x: int(x), input().split(' '))

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

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


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

Expected output:
Yes


Actual output:
No


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

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

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

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

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

Failing test case input:
5 4 2 0 1

Expected output:
No


Actual output:

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

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

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

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

Failing test case input:
2 5 2 0 1

Expected output:
No


Actual output:

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

W = num[0]
H = num[1]
x = num[2]
y = num[3]
r = num[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 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 or (x+r)>w:
  print('No')
elif (y-r)<0  or (y+r)>h:
  print('No')
else:
  print('Yes')

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 <= x <= (H - r)):
    print('Yes')
else:
    print('NO')

Failing test case input:
0 2 6 0 -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):
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:
    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 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 = (int(i) for i in input().split())
answer = "Yes"

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

print(answer)

Failing test case input:
2 8 2 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):


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



distance = [a[0] - a[2], a[2], a[1] - a[3], a[3]]
trueDigit = 1 

for d in distance:
    
    if d - circleRadius > 0: trueDigit *= 1 
    else: trueDigit *= 0


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



Failing test case input:
2 8 1 0 0

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):


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

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 -9

Expected output:
Yes


Actual output:
No


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: p03399
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
c = int(input())
d = int(input())
print(min(a, c) + min(b, d))

Failing test case input:
600
159
16
81

Expected output:
175


Actual output:
97


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
c = int(input())
d = int(input())
print(min(a, b) + min(c, d))

Problem: p03399
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
c = int(input())
d = int(input())

l = [a,b,c,d]
l.sort()
print(l[0]+l[1])

Failing test case input:
549
458
185
1

Expected output:
459


Actual output:
186


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
c = int(input())
d = int(input())

l1 = [a,b]
l2 = [c,d]
l1.sort()
l2.sort()
print(l1[0]+l2[0])

Problem: p03399
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
A=input()
B=input()
C=input()
D=input()
if A<=B:
  min1=int(A)
else:
  min1=int(B)
if C<=D:
  min2=int(C)
else:
  min2=int(D)
min_=min1+min2
print(int(min_))


Failing test case input:
555
32
1021
34

Expected output:
66


Actual output:
1053


Fixed submission (verdict: Accepted):
A=int(input())
B=int(input())
C=int(input())
D=int(input())
if A<=B:
  min1=A
else:
  min1=B
if C<=D:
  min2=C
else:
  min2=D
  
print(min1+min2)

Problem: p03399
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print(min(min(int(input()), int(input())), min(int(input()), int(input()))))


Failing test case input:
555
32
1021
34

Expected output:
66


Actual output:
32


Fixed submission (verdict: Accepted):
print(min(int(input()), int(input())) + min(int(input()), int(input())))

Problem: p03399
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = input()
b = input()
c = input()
d = input()

print(int(min(a, b)) + int(min(c, d)))

Failing test case input:
600
4
9
156

Expected output:
13


Actual output:
160


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
c = int(input())
d = int(input())

result = min(a, b) + min(c, d)

print(result)

Problem: p03399
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

A = int(input())
B = int(input())
C = int(input())
D = int(input())

if A>=B and C>=D:
    print(B+D)
if A>=B and C<=D:
    print(B+C)
if A<=B and C>=D:
    print(A+D)
if A<=B and C<=D:
    print(A+C)


Failing test case input:
555
555
400
200

Expected output:
755

Actual output:
755
755


Fixed submission (verdict: Accepted):

A = int(input())
B = int(input())
C = int(input())
D = int(input())

if A>=B and C>=D:
    print(B+D)
elif A>=B and C<=D:
    print(B+C)
elif A<=B and C>=D:
    print(A+D)
elif A<=B and C<=D:
    print(A+C)

Problem: p03399
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = input()
b = input()
c = input()
d = input()
print(min(a, b)+min(c,d))

Failing test case input:
600
80
25
68

Expected output:
105


Actual output:
60025


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
c = int(input())
d = int(input())
print(min(a, b)+min(c,d))
Problem: p03399
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input()) 
b = int(input()) 
c = int(input()) 
d = int(input()) 
print(min(a,b,c,d))

Failing test case input:
549
193
6
1

Expected output:
194


Actual output:
1


Fixed submission (verdict: Accepted):
a = int(input()) 
b = int(input()) 
c = int(input()) 
d = int(input()) 
print((min(a,b)+min(c,d)))

Problem: p03399
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B, C, D=[int(input()) for i in range(4)]
if A<=B:
  train=A
else:
  train=B
if C<=D:
  bus=C
else:
  bus=D
print(A+B)

Failing test case input:
549
439
2171
1

Expected output:
440


Actual output:
988


Fixed submission (verdict: Accepted):
A, B, C, D=[int(input()) for i in range(4)]
if A<=B:
  train=A
else:
  train=B
if C<=D:
  bus=C
else:
  bus=D
print(train+bus)

Problem: p03399
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
c=int(input())
d=int(input())
print(max([a,b])+max([c,d]))

Failing test case input:
549
714
2995
0

Expected output:
549


Actual output:
3709


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
c=int(input())
d=int(input())
print(min([a,b])+min([c,d]))

Problem: p03399
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

a = [int(input()) for i in range(4)]
print(min(a[0] , a[1] + min(a[2] , a[3])))

Failing test case input:
549
838
715
182

Expected output:
731


Actual output:
549


Fixed submission (verdict: Accepted):

a = [int(input()) for i in range(4)]
print(min(a[0] , a[1]) + min(a[2] , a[3]))

Problem: p03399
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c,d = [int(input()) for _ in range(4)]

print(max(a,b) + max(c,d))

Failing test case input:
555
2
6
6

Expected output:
8


Actual output:
561


Fixed submission (verdict: Accepted):
a,b,c,d = [int(input()) for _ in range(4)]

print(min(a,b) + min(c,d))

Problem: p03399
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


t_1 = input()
t_2 = input()
if (t_1 < t_2):
  sum_1 = t_1
else:
  sum_1 = t_2
  
b_1 = input()
b_2 = input()
if (b_1 < b_2):
  sum_2 = b_1
else:
  sum_2 = b_2
  
print(int(sum_1) + int(sum_2))

Failing test case input:
600
13
18
116

Expected output:
31


Actual output:
129


Fixed submission (verdict: Accepted):


t_1 = int(input())
t_2 = int(input())
if (t_1 < t_2):
  sum_1 = t_1
else:
  sum_1 = t_2
  
b_1 = int(input())
b_2 = int(input())
if (b_1 < b_2):
  sum_2 = b_1
else:
  sum_2 = b_2
  
print(sum_1 + sum_2)

Problem: p03399
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
c = int(input())
d = int(input())
ans = 0
if a > b:
  ans += a
else:
  ans += b
if c > d:
  ans += c
else:
  ans += d
print(ans)
	

Failing test case input:
555
312
400
206

Expected output:
518


Actual output:
955


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
c = int(input())
d = int(input())
ans = 0
if a > b:
  ans += b
else:
  ans += a
if c > d:
  ans += d
else:
  ans += c
print(ans)
Problem: p03399
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
c = int(input())
d = int(input())

list = [a,b,c,d]
list.sort()
print(list[0]+list[1])

Failing test case input:
549
750
115
16

Expected output:
565


Actual output:
131


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
c = int(input())
d = int(input())

print(min(a,b)+min(c,d))

Problem: p03399
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
c=int(input())
d=int(input())
print(max(a,b)+max(c,d))

Failing test case input:
600
548
220
176

Expected output:
724


Actual output:
820


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
c=int(input())
d=int(input())
print(min(a,b)+min(c,d))

Problem: p03399
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
input_train_price1=input()
input_train_price2=input()
input_bus_price1=input()
input_bus_price2=input()

train_price=[input_train_price1,input_train_price2]
bus_price=[input_bus_price1,input_bus_price2]

best_train_price=min(train_price)
best_bus_price=min(bus_price)

total_price=int(best_train_price)+int(best_bus_price)

print(total_price)

Failing test case input:
600
71
75
179

Expected output:
146


Actual output:
779


Fixed submission (verdict: Accepted):
input_train_price1=input()
input_train_price2=input()
input_bus_price1=input()
input_bus_price2=input()

train_price=[int(input_train_price1),int(input_train_price2)]
bus_price=[int(input_bus_price1),int(input_bus_price2)]

best_train_price=min(train_price)
best_bus_price=min(bus_price)



total_price=best_train_price+best_bus_price

print(str(total_price))

Problem: p03399
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = [a,b]
g = [c,d]
print(min(e)*min(g))

Failing test case input:
555
19
28
4

Expected output:
23


Actual output:
76


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = [a,b]
g = [c,d]
print(min(e)+min(g))

Problem: p03399
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = input()
b = input()
c = input()
d = input()
print(min(a,b)+min(c,d))

Failing test case input:
600
4
13
156

Expected output:
17


Actual output:
413


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
c = int(input())
d = int(input())
print(min(a,b) + min(c,d))

Problem: p03399
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
[a,b,c,d]=[input() for i in range(4)]
print(min(a,b)+min(c,d))


Failing test case input:
600
548
220
92

Expected output:
640


Actual output:
548220


Fixed submission (verdict: Accepted):
[a,b,c,d]=[int(input()) for i in range(4)]
print(min(a,b)+min(c,d))

Problem: p03399
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
c=int(input())
d=int(input())
print(min([a+c,a+d,b+c,c+d]))

Failing test case input:
555
7
11
4

Expected output:
11


Actual output:
15


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
c=int(input())
d=int(input())
print(min([a+c,a+d,b+c,b+d]))
Problem: p03399
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=input()
b=input()
c=input()
d=input()
print(min(a,b)+min(c,d))

Failing test case input:
555
23
728
206

Expected output:
229


Actual output:
23206


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
c=int(input())
d=int(input())
print(min(a,b)+min(c,d))

Problem: p03399
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = int(input())
B = int(input())
C = int(input())
D = int(input())



A_C = (A+C)
A_D = (A+D)
B_C = (B+C)
B_D = (B+D)

print(max(A_C,A_D,B_C,B_D))

Failing test case input:
600
80
9
68

Expected output:
89


Actual output:
668


Fixed submission (verdict: Accepted):
A = int(input())
B = int(input())
C = int(input())
D = int(input())



A_C = (A+C)
A_D = (A+D)
B_C = (B+C)
B_D = (B+D)

print(min(A_C,A_D,B_C,B_D))

Problem: p03399
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = []
for _ in range(4):
    a.append(int(input()))

print(min(min(a[0],a[1]), min(a[2],a[3])))


Failing test case input:
555
1
11
0

Expected output:
1


Actual output:
0


Fixed submission (verdict: Accepted):
a = []
for _ in range(4):
    a.append(int(input()))

print(min(a[0],a[1])+ min(a[2],a[3]))

Problem: p03399
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c,d=map(int,open(0).read().split())
print(min(a,c)+min(b,d))

Failing test case input:
600
548
220
156

Expected output:
704


Actual output:
376


Fixed submission (verdict: Accepted):
a,b,c,d=map(int,open(0).read().split())
print(min(a,b)+min(c,d))

Problem: p03399
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = input(int())
B = input(int())
C = input(int())
D = input(int())
train = [A,  B]
bus = [C, D]
ans = min(train) + min(bus)
print(ans)


Failing test case input:
549
353
693
1

Expected output:
354


Actual output:
00003531


Fixed submission (verdict: Accepted):
A = int(input())
B = int(input())
C = int(input())
D = int(input())
train = [A,  B]
bus = [C, D]
ans = min(train) + min(bus)
print(ans)

Problem: p03399
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = int(input())
B = int(input())
C= int(input())
D= int(input())
if A>=B:
	if C>=D:
		print("{}".format(B+D))
if A>=B:
	if D>C:
		print("{}".format(B+C))
if B>A:
	if C>=D:
		print("{}".format(A+D))		
if B>A:
	if D>C:
		print("{}".format(B+C))

Failing test case input:
549
838
115
182

Expected output:
664


Actual output:
953


Fixed submission (verdict: Accepted):
A = int(input())
B = int(input())
C= int(input())
D= int(input())
if A>=B:
	if C>=D:
		print("{}".format(B+D))
if A>=B:
	if D>C:
		print("{}".format(B+C))
if B>A:
	if C>=D:
		print("{}".format(A+D))		
if B>A:
	if D>C:
		print("{}".format(A+C))

Problem: p03399
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l=[int(input()) for i in range(4)]
print(min(l[0:2])+min(l[2:3]))

Failing test case input:
549
439
2171
1

Expected output:
440


Actual output:
2610


Fixed submission (verdict: Accepted):
l=[int(input()) for i in range(4)]
print(min(l[:2])+min(l[2:]))