ZhenlongDai/ACPR huggingface dataset:
Problem: p03075
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
diff_L = []
for val in range(5):
    a = int(input())
    diff_L.append(a)

k = int(input())
ans = max(diff_L)-min(diff_L)
print(ans)

if ans <= k:
    print("Yay!")
else:
    print(":(")


Failing test case input:
1
0
7
1
31
2

Expected output:
:(


Actual output:
31
:(


Fixed submission (verdict: Accepted):
diff_L = []
for val in range(5):
    a = int(input())
    diff_L.append(a)

k = int(input())
ans = max(diff_L)-min(diff_L)

if ans <= k:
    print("Yay!")
else:
    print(":(")

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
anntena_list = []
 
for i in range(5):
    anntena_list.append(int(input()))
    
m = int(input())
    
flag = False
for i in range(4):
  for j in range(4-i):
    if anntena_list[4-i] - anntena_list[j]  > m:
      flag = True
      
if flag:
  print(':C')
else:
  print('Yay!')

Failing test case input:
15
18
26
30
21
2

Expected output:
:(


Actual output:
:C


Fixed submission (verdict: Accepted):
anntena_list = []
 
for i in range(5):
    anntena_list.append(int(input()))
    
m = int(input())
    
flag = False
for i in range(4):
  for j in range(3-i):
    if anntena_list[4-i] - anntena_list[j]  > m:
      flag = True
      
if flag:
  print(':(')
else:
  print('Yay!')

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
list = []
for i in range(4):
	list.append(int(input()))
k = int(input())

for i in range(4):
  for j in range(3-i):
    if list[i+1+j] - list[i] > k:
      print(":(")
      break
  else:
    print("Yay!")
  break

Failing test case input:
1
0
7
1
18
2

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
list = []
for i in range(5):
	list.append(int(input()))
k = int(input())

for i in range(5):
  for j in range(4-i):
    if list[i+1+j] - list[i] > k:
      print(":(")
      break
  else:
    print("Yay!")
  break

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
antennas = []
for _ in range(5):
    antennas.append(int(input()))
k = int(input())

flag = 1
while(antennas != []):
    for i in range(len(antennas)-1):
        i += 1
        if antennas[i] - antennas[0] <= k:
            continue
        else:
            flag *= 0
            print(":(")
            break
    antennas = antennas[1:]

if flag == 1:
    print('Yay!')


Failing test case input:
15
18
52
35
36
18

Expected output:
:(


Actual output:
:(
:(


Fixed submission (verdict: Accepted):
import sys

antennas = []
for _ in range(5):
    antennas.append(int(input()))
k = int(input())

flag = 1
while(len(antennas) != 1):
    for i in range(len(antennas)-1):
        i += 1
        if antennas[i] - antennas[0] <= k:
            continue
        else:
            flag *= 0
            print(":(")
            sys.exit()
    antennas = antennas[1:]

if flag == 1:
    print('Yay!')
Problem: p03075
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
antena = [int(input()) for _ in range(5)]

k = int(input())

max_dist = max(antena)
min_dist = min(antena)

l = max_dist - min_dist

if l < k:
    print("Yay!")
else:
    print(":(")



Failing test case input:
1
-2
5
13
6
15

Expected output:
Yay!


Actual output:
:(


Fixed submission (verdict: Accepted):
antena = [int(input()) for _ in range(5)]

k = int(input())

max_dist = max(antena)
min_dist = min(antena)

l = max_dist - min_dist

if l <= k:
    print("Yay!")
else:
    print(":(")

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
list1 = [input() for i in range(5)]
k = int(input())
list1 = list(map(int,list1))
list2 = []

for i in range(5):
    for k in range(i+1,5):
        list2.append(list1[k]-list1[i])

if max(list2) <= k:
    print ("Yay!")
else:
    print(":(")


Failing test case input:
1
1
8
2
8
23

Expected output:
Yay!


Actual output:
:(


Fixed submission (verdict: Accepted):
list1 = [input() for i in range(5)]
num = int(input())
list1 = list(map(int,list1))
list2 = []

for i in range(5):
    for k in range(i+1,5):
        list2.append(list1[k]-list1[i])

if max(list2) <= num:
    print ("Yay!")
else:
    print(":(")

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l = sorted(list(map(int, [input() for i in range(5)])))
k = int(input())

if l[-1] - l[0] < k:
  print("Yay!")
else:
  print(":(")

Failing test case input:
1
-2
5
13
10
15

Expected output:
Yay!


Actual output:
:(


Fixed submission (verdict: Accepted):
l = sorted(list(map(int, [input() for i in range(5)])))
k = int(input())

if l[-1] - l[0] <= k:
  print("Yay!")
else:
  print(":(")

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = 5
list=[int(input()) for i in range(n)]
p = int(input())
max = 0
a = 0
for i in range(n):
  for j in range(n):
    a = abs(list[i] - list[j])
    if a > max:
      max = a
      
if max <= p:
  print('Yey!')
else:
  print(':(')

Failing test case input:
1
0
5
8
4
15

Expected output:
Yay!


Actual output:
Yey!


Fixed submission (verdict: Accepted):
n = 5
list=[int(input()) for i in range(n)]
p = int(input())
max = 0
a = 0
for i in range(n):
  for j in range(n):
    a = abs(list[i] - list[j])
    if a > max:
      max = a
      
if max <= p:
  print('Yay!')
else:
  print(':(')

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c,d,e,k=[int(input()) for i in range(6)]
if e-a<=k:
  print("Yay!")
else:
  print(":()")

Failing test case input:
15
18
26
20
34
2

Expected output:
:(


Actual output:
:()


Fixed submission (verdict: Accepted):
a,b,c,d,e,k=[int(input()) for i in range(6)]
if e-a<=k:
  print("Yay!")
else:
  print(":(")
Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
data = []
for i in range(6):
    data.append(int(input()))

if max(data) - min(data) <= 15:
    print('Yay!')
else:
    print(':(')

Failing test case input:
1
0
5
5
8
22

Expected output:
Yay!


Actual output:
:(


Fixed submission (verdict: Accepted):
data = []
for i in range(6):
    data.append(int(input()))

if max(data[:-1]) - min(data[:-1]) <= data[-1]:
    print('Yay!')
else:
    print(':(')

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
hoge = [int(input()) for _ in range(6)]

i=0
j=0
flag=0

while(i<len(hoge)-2):
    while(j<len(hoge)-2):
        if hoge[j]-hoge[i] > hoge[-1]:
            flag = 1
        j+=1
    i+=1

if flag==0:
    print('Yay!')
else:
    print(':(')


Failing test case input:
15
5
4
1
38
8

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
hoge = [int(input()) for _ in range(6)]

i=0
j=0
flag=0

for i in range(len(hoge)-2):
    for j in range(len(hoge)-1):
        if hoge[j]-hoge[i] > hoge[-1]:
            flag = 1



if flag==0:
    print('Yay!')
else:
    print(':(')

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

if a-e <= k:
  print('Yay!')
elif a-b > k or c-b > k or d-c > k or e-d > k:
  print(':(')
elif c-a > k or d-b > k or e-c > k:
  print(':(')
elif d-a > k or e-b > k:
  print(':(')
elif e-a < k:
  print(':(')
  

Failing test case input:
1
0
7
1
10
2

Expected output:
:(


Actual output:
Yay!


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

if e-a <= k:
  print('Yay!')
elif b-a > k or c-b > k or d-c > k or e-d > k:
  print(':(')
elif c-a > k or d-b > k or e-c > k:
  print(':(')
elif d-a > k or e-b > k:
  print(':(')
elif e-a > k:
  print(':(')

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
k=int(input())
if(e-a>k):
    print(':(')
else:
    print('Yey')

Failing test case input:
1
0
0
13
6
23

Expected output:
Yay!


Actual output:
Yey


Fixed submission (verdict: Accepted):
A = int(input())
B = int(input())
C = int(input())
D = int(input())
E = int(input())
k = int(input())
     
if E - A > k:
    print(":(")
else:
    print("Yay!")

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
lists = [0,0,0,0,0,0]
for i in lists:
        i = input()


if lists[4]-lists[0]<=lists[5]:
        print("Yay!")
else:
        print(":(")

Failing test case input:
1
0
9
0
5
3

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
lists = [0,0,0,0,0,0]
for i in range(len(lists)):
        lists[i] = int(input())

if lists[4]-lists[0]<=lists[5]:
        print("Yay!")
else:
        print(":(")
Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A=[int(input()) for i in range(5)]
k=int(input())

for i in range(4):
	for j in range(i):
		if A[i]-A[j]>k:
			print()
			exit()
print("Yay!")

Failing test case input:
1
0
4
8
18
15

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
A=[int(input()) for _ in range(5)]
k=int(input())

for i in range(5):
  for j in range(i):
    if A[i]-A[j]>k:
      print(":(")
      exit()
print("Yay!")

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




antn = list(map(int, open(0).read().split()))
flg = 0
for i in range(0,4):
    for j in range(i+1, 4):
        if (antn[j] - antn[i] > antn[5]):
            flg = 1
print("Yay!" if flg == 0 else ":(")

Failing test case input:
15
5
4
0
38
8

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):




antn = list(map(int, open(0).read().split()))
flg = 0
for i in range(0,4):

    j=0
    for j in range(i+1, 5):
        if (antn[j] - antn[i] > antn[5]):
            flg = 1
print("Yay!" if flg == 0 else ":(")

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c,d,e = [int(input()) for i in range(5)]
k = int(input())
if a-e > k:
  print("Yay!")
else:
  print(":(")

Failing test case input:
1
0
5
8
8
15

Expected output:
Yay!


Actual output:
:(


Fixed submission (verdict: Accepted):
a,b,c,d,e = [int(input()) for i in range(5)]
k = int(input())
if e-a > k:
  print(":(")
else:
  print("Yay!")

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

a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())
if( e - a > k):
	print(":)")
else:
	print("Yay!")

Failing test case input:
15
5
4
35
57
3

Expected output:
:(


Actual output:
:)


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())
if( e - a > k):
	print(":(")
else:
	print("Yay!")

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
k=int(input())
print('Yay!' if b-a<=k and c-b<=k and d-c<=k and e-d<=k and d-a<=k else ':(')

Failing test case input:
1
0
4
8
18
15

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
k=int(input())
print('Yay!' if b-a<=k and c-b<=k and d-c<=k and e-d<=k and e-a<=k else ':(')
Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
k=int(input())
if  abs(a-b)<k and abs(a-c)<k and abs(a-d)<k and abs(a-e)<k and abs(b-c)<k and abs(b-d)<k and abs(b-e)<k and abs(c-d)<k and abs(c-e)<k and abs(d-e)<k:
    print("Yay!")
else:
    print(":(")

Failing test case input:
1
-2
5
13
10
15

Expected output:
Yay!


Actual output:
:(


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
k=int(input())
if  abs(a-b)<=k and abs(a-c)<=k and abs(a-d)<=k and abs(a-e)<=k and abs(b-c)<=k and abs(b-d)<=k and abs(b-e)<=k and abs(c-d)<=k and abs(c-e)<=k and abs(d-e)<=k:
    print("Yay!")
else:
    print(":(")

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l1 = []
for _ in range(6):
  l1.append(int(input()))

if (l1[4] - l1[0]) < l1[5]:
  r = ':('
else:
  r = 'Yay!'
  
  
print(r)

Failing test case input:
1
0
5
13
8
15

Expected output:
Yay!


Actual output:
:(


Fixed submission (verdict: Accepted):
l1 = []
for _ in range(6):
  l1.append(int(input()))
 
if (l1[4] - l1[0]) > l1[5]:
  r = ':('
else:
  r = 'Yay!'
  
  
print(r)

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

if k < e - a:
  print('(:')
else:
  print('Yay!')

Failing test case input:
15
5
4
71
38
3

Expected output:
:(


Actual output:
(:


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

if k < e - a:
  print(':(')
else:
  print('Yay!')

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

A = [0, 0, 0, 0, 0]
A[0] = int(input())
A[1] = int(input())
A[2] = int(input())
A[3] = int(input())
A[4] = int(input())
k = int(input())

flg = 0

for i in range(4):
    for j in range(i+1, 5, 1):
        if k < (A[j] - A[i]):
            flg = 1
            print(":(")
            break

if flg == 0:
    print("Yay!")


Failing test case input:
15
18
26
30
21
2

Expected output:
:(


Actual output:
:(
:(
:(


Fixed submission (verdict: Accepted):

A = [0, 0, 0, 0, 0]
A[0] = int(input())
A[1] = int(input())
A[2] = int(input())
A[3] = int(input())
A[4] = int(input())
k = int(input())

flg = 0

for i in range(0, 4, 1):
    if flg == 1:
        break

    for j in range(i+1, 5, 1):
        if k < (A[j] - A[i]):
            flg = 1
            print(":(")
            break

if flg == 0:
    print("Yay!")
Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
data = []
for i in range(5):
    data.append(int(input()))
k = int(input())
data.sort()
for i in data:
    for j in data[i+1:]:
        if j - i <= k:
            print('Yay!')
            sys.exit()
        else:
            continue
print(':(')

Failing test case input:
15
0
4
1
38
5

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
import sys
data = []
for i in range(5):
    data.append(int(input()))
k = int(input())
data.sort()
for i in range(5):
    for j in data[i+1:]:
        if j - data[i] > k:
            print(':(')
            sys.exit()
        else:
            continue
print('Yay!')

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x=[int(input()) for i in range(5)]
k=int(input())
print("Yay!" if max(x)-min(x)>=k else ":(")

Failing test case input:
1
0
0
5
6
23

Expected output:
Yay!


Actual output:
:(


Fixed submission (verdict: Accepted):
x=[int(input()) for i in range(5)]
k=int(input())
print("Yay!" if max(x)-min(x)<=k else ":(")

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
abcde =[ int(input()) for _ in range(5)] 
K = int(input())
flag = False
for i in range(5):
    for s in range(4-i):
        if abcde[s] - abcde[i] > K:
            flag = True
if flag:
    print(':(')
else:
    print('Yay!')


Failing test case input:
1
0
4
8
18
15

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
abcde =[ int(input()) for _ in range(5)] 
K = int(input())
flag = False
for i in range(5):
    for s in range(1,5-i):
        if abcde[s] - abcde[i] > K:
            flag = True
if flag:
    print(':(')
else:
    print('Yay!')

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

if e - a > k:
    print("Yay!")
else:
    print(":(")


Failing test case input:
1
1
9
0
5
3

Expected output:
:(


Actual output:
Yay!


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

if e - a > k:
    print(":(")
else:
    print("Yay!")

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
ds = []
for i in range(5):
    ds.append(int(input()))
k = int(input())

cnt = 0
for i in range(5):
    for j in range(i + 1, 5):
        if abs(ds[i] - ds[j]) <= k:
            cnt += 1
if cnt > 0:
    print(':(')
else:
    print("Yay!")


Failing test case input:
1
0
8
13
8
23

Expected output:
Yay!


Actual output:
:(


Fixed submission (verdict: Accepted):
ds = []
for i in range(5):
    ds.append(int(input()))
k = int(input())

cnt = 0
for i in range(5):
    for j in range(i + 1, 5):
        if abs(ds[i] - ds[j]) > k:
            cnt += 1
if cnt > 0:
    print(':(')
else:
    print("Yay!")
Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
ant = []

for i in range(5):
    ant.append(int(input()))
k = int(input())
flag = 0

for i in range(0,5):
    if flag == 1: break
    for j in range(i+1,5):
      if ant[j] - ant[i] > k:
            print(':(')
            flag = 1
            break

if flag==0: print('Yey!')

Failing test case input:
1
0
5
13
8
15

Expected output:
Yay!


Actual output:
Yey!


Fixed submission (verdict: Accepted):
ant = []
 
for i in range(5):
    ant.append(int(input()))
k = int(input())
 
for i in range(0,5):
    for j in range(i+1,5):
        if abs(ant[i] - ant[j]) > k:
            print(':(')
            exit()
print('Yay!')

Problem: p03075
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
y = "Yey!"
n = ":("
a = int(input().strip())
b = int(input().strip())
c = int(input().strip())
d = int(input().strip())
e = int(input().strip())
k = int(input().strip())

if abs(a - e) > k:
        ans = n
else:
        ans = y
print(ans)


Failing test case input:
1
0
13
1
10
23

Expected output:
Yay!


Actual output:
Yey!


Fixed submission (verdict: Accepted):

y = "Yay!"
n = ":("
a = int(input().strip())
b = int(input().strip())
c = int(input().strip())
d = int(input().strip())
e = int(input().strip())
k = int(input().strip())

if abs(a - e) > k:
        ans = n
else:
        ans = y
print(ans)

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
antena = []
for i in range(5):
	n = int(input())
	antena.append(n)
k = int(input())

bad_flag = False
for i,ant in enumerate(antena):
	if abs(ant - antena[i]) > k :
		bad_flag = True
	if bad_flag :
		break

if bad_flag :
	print(":(")
else :
	print("Yay!")
	
	

Failing test case input:
1
1
9
0
5
3

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
antena = []
for i in range(5):
	n = int(input())
	antena.append(n)
k = int(input())

bad_flag = False
for i,ant in enumerate(antena):
	for bnt in antena[i:] :
		if abs(ant - bnt) > k :
			bad_flag = True 
	if bad_flag :
		break

if bad_flag :
	print(":(")
else :
	print("Yay!")

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

a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
k=int(input())
if e-a < k:
    print('Yey!')
else:
    print(':(')

Failing test case input:
1
-2
5
13
5
23

Expected output:
Yay!


Actual output:
Yey!


Fixed submission (verdict: Accepted):

a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
k=int(input())
if e-a <= k:
    print('Yay!')
else:
    print(':(')
Problem: p03075
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
def main():
    input_data = [int(input()) for i in range(5)]
    k = int(input())
    count = 0

    input_data.sort()

    temp = input_data[0] - input_data[4]
    if temp > k :
        print(":(")
    else:
        print('Yay!')

if __name__ == '__main__':
    main()

Failing test case input:
15
18
26
30
21
2

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
def main():
    input_data = [int(input()) for i in range(5)]
    k = int(input())

    input_data.sort()
    input_data.reverse()

    temp = input_data[0] - input_data[4]
    if temp > k :
        print(":(")
    else:
        print('Yay!')

if __name__ == '__main__':
    main()

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

if k >= e-a:
	print(":(")
else:
	print("Yay!")

Failing test case input:
15
5
4
35
38
3

Expected output:
:(


Actual output:
Yay!


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

if k >= e-a:
	print("Yay!")
else:
	print(":(")

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
Li = list(int(input()) for _ in range(6))
F =[1  for i in range(4) for j in range(i,4) if abs(Li[j]-Li[i]) < Li[5]]
print ("Yay!" if len(F)==10 else ":(")

Failing test case input:
1
-2
5
13
6
15

Expected output:
Yay!


Actual output:
:(


Fixed submission (verdict: Accepted):
Li = list(int(input()) for _ in range(6))
F =[1  for i in range(4) for j in range(i+1,5) if abs(Li[j]-Li[i]) <= Li[5]]
print ("Yay!" if len(F)==10 else ":(")

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())
if b-a <= k and c-b <= k and d-c <= k and e-d <= k:
    print("Yay!")
else:
    print(":(")

Failing test case input:
1
0
4
8
18
15

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())
if e-a <= k:
    print("Yay!")
else:
    print(":(")

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

if k < e-d or k < d-c or k < c-b or b-a:
    print(":(")
else:
    print("Yay!")

Failing test case input:
1
-1
7
1
6
23

Expected output:
Yay!


Actual output:
:(


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

if k < abs(e-a):
    print(":(")
else:
    print("Yay!")
Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=[]
for i in range(4):
    b=int(input())
    a.append(b)
c=int(input())
if max(a) - min(a) < c:
    print('Yay!')
else:
    print(':(')

Failing test case input:
15
10
26
20
34
2

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
a=[]
for i in range(5):
    b=int(input())
    a.append(b)
c=int(input())
if a[4] - a[0] <= c:
    print('Yay!')
else:
    print(':(')

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import itertools
a = []
for _ in range(5):
  a.append(int(input()))
k = int(input())
combs = itertools.combinations(a, 2)
l = [(n,m) for (n, m) in combs if m - n > k]
if len(l) == 0:
  print(':(')
else:
  print('Yay!')

Failing test case input:
1
0
4
8
18
29

Expected output:
Yay!


Actual output:
:(


Fixed submission (verdict: Accepted):
import itertools
a = []
for _ in range(5):
  a.append(int(input()))
k = int(input())
combs = itertools.combinations(a, 2)
l = [(n,m) for (n, m) in combs if m - n > k]
if len(l) == 0:
  print('Yay!')
else:
  print(':(')

Problem: p03075
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
mn, mx = float('inf'), -float('inf')
for i in range(5):
    a = int(input())
    mn = min(mn, a)
    mx = max(mx, a)
k = int(input())
if mx - mn < k:
    print(":(")
else:
    print("Yay!")

Failing test case input:
1
0
7
2
8
23

Expected output:
Yay!


Actual output:
:(


Fixed submission (verdict: Accepted):
mn, mx = float('inf'), -float('inf')
for i in range(5):
    a = int(input())
    mn = min(mn, a)
    mx = max(mx, a)
k = int(input())
if mx - mn > k:
    print(":(")
else:
    print("Yay!")

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=sorted([int(input()) for _ in range(5)])
print("Yay!" if a[4]-a[0]<int(input()) else ":(")


Failing test case input:
1
-2
5
13
10
15

Expected output:
Yay!


Actual output:
:(


Fixed submission (verdict: Accepted):
a=sorted([int(input()) for _ in range(5)])
print("Yay!" if a[4]-a[0]<=int(input()) else ":(")

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
a = []
for i in range(6):
  a.append(int(input()))
for i in range(5):
  for j in range(5):
    if abs(a[i] - a[j]) > a[5]:
      print('Yay!')
      sys.exit()
print(':(')

Failing test case input:
1
0
8
2
8
23

Expected output:
Yay!


Actual output:
:(


Fixed submission (verdict: Accepted):
import sys
a = []
for i in range(6):
    a.append(int(input()))
for i in range(5):
    for j in range(5):
        if abs(a[i] - a[j]) > a[5]:
            print(':(')
            sys.exit()
print('Yay!')

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x = [int(input()) for i in range(5)]
if x[4] - x[0] < x[-1]: print("Yay!")
else: print(":(")

Failing test case input:
15
0
1
0
22
5

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
x = [int(input()) for i in range(6)]
if x[4] - x[0] <= x[-1]: print("Yay!")
else: print(":(")
Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
antenna = [int(input()) for i in range(5)]
k = int(input())
ans = 'Yey!'
for i in range(5):
    for j in range(i):
        if abs(antenna[i]-antenna[j])>k:
            ans = ':('
print(ans)

Failing test case input:
1
-2
8
13
6
17

Expected output:
Yay!


Actual output:
Yey!


Fixed submission (verdict: Accepted):
antenna = [int(input()) for i in range(5)]
k = int(input())
ans = 'Yay!'
for i in range(5):
    for j in range(i):
        if abs(antenna[i]-antenna[j])>k:
            ans = ':('
print(ans)

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
e = int(input())
k = int(input())
        
if e-a < k:        
    print("Yay!")
else:
    print(":(")    

Failing test case input:
15
5
13
35
34
4

Expected output:
:(


Actual output:
Yay!


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

if e-a > k:        
    print(":(")
else:
    print("Yay!")

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A= [int(input()) for i in range(6)]
answer = "Yay!"
for u in range(4):
  for s in range(u+1,4):
    if A[s] - A[u] > A[5]:
      answer = ":("
print(answer)

Failing test case input:
15
5
4
1
60
3

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
A= [int(input()) for i in range(6)]
answer = "Yay!"
for u in range(4):
  for s in range(u,5):
    if A[s] - A[u] > A[5]:
      answer = ":("
print(answer)

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
an = []
for i in range(5):
    an.append(int(input()))
k=int(input())+1
if(an[4]-an[3]<k and an[3]-an[2]<k and an[2]-an[1]<k and an[1]-an[0]<k):
    print("Yay!")
else:
    print(":(")

Failing test case input:
1
0
4
8
18
15

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
an = []
for i in range(5):
    an.append(int(input()))
k=int(input())+1
if(an[4]-an[0]<k):
    print("Yay!")
else:
    print(":(")

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
stdin = sys.stdin
 
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
nn = lambda: list(stdin.readline().split())
ns = lambda: stdin.readline().rstrip()
 
a = ni()
b = ni()
c = ni()
d = ni()
e = ni()
k = ni()
 
if b-a <= k and c-b <= k and d-c <= k and e-d <= k:
    print('Yay!')
else:
    print(':(')

Failing test case input:
1
0
4
8
18
15

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
import sys
stdin = sys.stdin
 
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
nn = lambda: list(stdin.readline().split())
ns = lambda: stdin.readline().rstrip()
 
a = ni()
b = ni()
c = ni()
d = ni()
e = ni()
k = ni()
 
if e-a <= k:
    print('Yay!')
else:
    print(':(')
Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
li=[int(input()) for i in range(6)]
if max(li[0:4])-min(li[0:4])>=li[5]:
    print(":(")
else:
    print("Yay!")

Failing test case input:
1
-2
5
13
6
15

Expected output:
Yay!


Actual output:
:(


Fixed submission (verdict: Accepted):
A = [int(input()) for i in range(6)]

if A[4] - A[0] > A[5]:
    print(":(")
else:
    print("Yay!")

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = [int(input()) for i in range(5)]
k = int(input())

ans = 0
for i in range(5):
    for j in range(i+1,5):
        print(a[i],a[j])
        if abs(a[i]-a[j]) <= k:
            ans += 1
if ans == 10:
    print("Yay!")
else:
    print(":(")

Failing test case input:
1
-2
5
13
3
23

Expected output:
Yay!


Actual output:
1 -2
1 5
1 13
1 3
-2 5
-2 13
-2 3
5 13
5 3
13 3
Yay!


Fixed submission (verdict: Accepted):
a = [int(input()) for i in range(5)]
k = int(input())

ans = 0
for i in range(5):
    for j in range(i+1,5):
        if abs(a[i]-a[j]) <= k:
            ans += 1
if ans == 10:
    print("Yay!")
else:
    print(":(")

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

x = b - a
y = c - b
z = d - c
w = e - d

if x <= k and y <= k and z <= k and w <= k:
  print('Yay!')
else:
  print(':(')


Failing test case input:
1
0
4
8
18
15

Expected output:
:(


Actual output:
Yay!


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

x = e - a

if x <= k:
  print('Yay!')
else:
  print(':(')

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())
ant = [a, b, c, d, e]
f = False

for i in range(0, 5):
    for ii in range(i + 1, 5):
        sa = ant[i] - ant[ii]
        if -sa <= k:
            continue
        else:
            print(":(")
            f = True
            break

if f is False:
    print("Yay!")


Failing test case input:
15
0
4
1
22
5

Expected output:
:(


Actual output:
:(
:(
:(
:(


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())
ant = [a, b, c, d, e]
f = False

for i in range(0, 5):
    for ii in range(i + 1, 5):
        sa = ant[i] - ant[ii]
        if -sa <= k:
            continue
        else:
            print(":(")
            f = True
            break
    break

if f is False:
    print("Yay!")
Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
input_nums = []
input_count = 5

for i in range(0,input_count):
  input_nums.append(int(input()))

allowed_distance = int(input())

for i in range(0,input_count-1):
  for j in range(i+1,input_count-1):
    if (input_nums[j] - input_nums[i]) > allowed_distance:
      print(':(')
      exit()

print('Yay!')


Failing test case input:
15
-1
4
1
38
5

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
input_nums = []
input_count = 5

for i in range(0,input_count):
  input_nums.append(int(input()))

allowed_distance = int(input())

for i in range(0,input_count):
  for j in range(i+1,input_count):
    
    if (input_nums[j] - input_nums[i]) > allowed_distance:
      print(':(')
      exit()

print('Yay!')

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c, d, e, k = (int(input()) for _ in range(6))
print('Yey!' if abs(a-e) <= k else ':(')

Failing test case input:
1
0
8
8
10
15

Expected output:
Yay!


Actual output:
Yey!


Fixed submission (verdict: Accepted):
a, b, c, d, e, k = (int(input()) for _ in range(6))
print('Yay!' if abs(a-e) <= k else ':(')

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
in_list = []
for i in range(5):
  in_list.append(int(input()))
if max(in_list) - min(in_list) >= int(input()):
  print(":(")
else:
  print("Yay!")

Failing test case input:
1
-2
5
13
6
15

Expected output:
Yay!


Actual output:
:(


Fixed submission (verdict: Accepted):
in_list = []
for i in range(5):
  in_list.append(int(input()))
if max(in_list) - min(in_list) > int(input()):
  print(":(")
else:
  print("Yay!")

Problem: p03075
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
antena = [0]*5
for i in range(5):
  antena[i] = int(input())
  
k = int(input())
 
for i in range(len(antena)):
  if antena[-1]-antena[i]>k:
    print(":(")
else:
  print("Yay!")

Failing test case input:
1
0
2
8
4
1

Expected output:
:(


Actual output:
:(
:(
:(
Yay!


Fixed submission (verdict: Accepted):
antena = [0]*5
for i in range(5):
  antena[i] = int(input())
  
k = int(input())
 
for i in range(len(antena)):
  if antena[-1]-antena[i]>k:
    print(":(")
    break
else:
  print("Yay!")

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
num = []
for i in range(5):
    num.append(int(input()))
k = int(input())

count = 0
if (max(num) - min(num)) > k:
    print(':()')
else:
    print('Yay!')

Failing test case input:
15
0
1
0
22
5

Expected output:
:(


Actual output:
:()


Fixed submission (verdict: Accepted):
num = []
for i in range(5):
    num.append(int(input()))
k = int(input())

if (max(num) - min(num)) > k:
    print(':(')
else:
    print('Yay!')
Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=[]
for i in range(5):
	a.append(int(input()))

k = int(input())

if max(a)-min(a) <= 15:
	print('Yay!')
else:
	print(':(')

Failing test case input:
1
1
9
0
5
3

Expected output:
:(


Actual output:
Yay!


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

k = int(input())

if max(a)-min(a) <= k:
	print('Yay!')
else:
	print(':(')

Problem: p03075
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = []
ans = 'Yay!'
for i in range(6):
    n.append(int(input()))
for i in range(4):
    for j in range(4):
        if abs(n[i] - n[j]) > n[5]:
            ans = ':('
print(ans)


Failing test case input:
1
0
4
8
18
15

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
n = []
ans = 'Yay!'
for i in range(6):
    n.append(int(input()))
for i in range(5):
    for j in range(5):
        if abs(n[i] - n[j]) > n[5]:
            ans = ':('
print(ans)

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A=[]
for i in range(0,6):
  A.append(int(input()))
print(A)
end=1
for i in range(0,5):
  for j in range(i,5):
    print(A[j]-A[i])
    if A[j]-A[i]>A[5]:
      end=0
      break
if end==0:
    print(":(")
else:
	print("Yey!")

Failing test case input:
15
5
4
35
38
3

Expected output:
:(


Actual output:
[15, 5, 4, 35, 38, 3]
0
-10
-11
20
0
-1
30
0
31
0
3
0
:(


Fixed submission (verdict: Accepted):
A=[]
for i in range(0,6):
  A.append(int(input()))
end=1
for i in range(0,5):
  for j in range(i,5):
    if A[j]-A[i]>A[5]:
      end=0
      break
if end==0:
    print(":(")
else:
	print("Yay!")

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l=[int(input()) for i in range(5)]
k=int(input())
if l[4]-l[1]>k:
    print(":(")
else:
    print("Yay!")

Failing test case input:
15
18
26
35
36
18

Expected output:
:(

Actual output:
Yay!


Fixed submission (verdict: Accepted):
l=[int(input()) for i in range(5)]
k=int(input())
if l[4]-l[0]>k:
    print(":(")
else:
    print("Yay!")

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

a=[]
for i in range(6):
    a.append(int(input()))
f=True
for i in range(3):
    for j in range(6-i):
        if a[5]<=abs(a[i]-a[j]):
            f=False
if f:
    print('Yay!')
else:
    print(':(')

Failing test case input:
1
-2
5
13
10
15

Expected output:
Yay!


Actual output:
:(


Fixed submission (verdict: Accepted):

a=[]
for i in range(6):
    a.append(int(input()))
f=True
for i in range(3):
    for j in range(6-i):
        if a[5]<abs(a[i]-a[j]):
            f=False
if f:
    print('Yay!')
else:
    print(':(')
Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=[]
for i in range(5):
    b=int(input())
    a.append(b)
    print(a)
c=int(input())
if a[0] - a[4] <= c:
    print('Yay!')
else:
    print(':(')

Failing test case input:
15
5
4
1
38
3

Expected output:
:(


Actual output:
[15]
[15, 5]
[15, 5, 4]
[15, 5, 4, 1]
[15, 5, 4, 1, 38]
Yay!


Fixed submission (verdict: Accepted):
a=[]
for i in range(5):
    b=int(input())
    a.append(b)
c=int(input())
if a[4] - a[0] <= c:
    print('Yay!')
else:
    print(':(')

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
antenna = []
bool = True

for i in range(5):
    a = int(input())
    antenna.append(a)
max_distance = int(input())

for i in range(5):
    for j in range(5):
        if abs(antenna[i] - antenna[j]) > 15:
            bool = False
            
if bool:
    print("Yay!")
else:
    print(":(")

Failing test case input:
1
1
9
0
5
3

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
antenna = []
bool = True

for i in range(5):
    a = int(input())
    antenna.append(a)
max_distance = int(input())

for i in range(5):
    for j in range(5):
        if abs(antenna[i] - antenna[j]) > max_distance:
            bool = False
            
if bool:
    print("Yay!")
else:
    print(":(")

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = []
for i in range(0, 5):
    a.append(int(input()))

k = int(input())
f = True

for i in range(0, 5):
    for j in range(i + 1, 5):
        if a[j] - a[i] > k:
            f = False
            print(":(")
            break
if f:
    print("Yay!")

Failing test case input:
15
5
4
1
60
3

Expected output:
:(


Actual output:
:(
:(
:(
:(


Fixed submission (verdict: Accepted):
a = []
for i in range(0, 5):
    a.append(int(input()))

k = int(input())
f = True

for i in range(0, 5):
    for j in range(i + 1, 5):
        if f and a[j] - a[i] > k:
            f = False
            print(":(")

if f:
    print("Yay!")

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input(">>"))
b = int(input(">>"))
c = int(input(">>"))
d = int(input(">>"))
e = int(input(">>"))

k = int(input(">>"))

list = [a, b, c, d, e]

Flag = "Yay!"
for i in range(5):
    for j in range(5):
        if abs(list[i] - list[j]) == 0:
            pass
        elif abs(list[i] - list[j]) > k:
            Flag = ":("
            break
print(Flag)


Failing test case input:
15
5
4
35
38
3

Expected output:
:(


Actual output:
>>>>>>>>>>>>:(


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

k = int(input())

list = [a, b, c, d, e]

Flag = "Yay!"
for i in range(5):
    for j in range(5):
        if abs(list[i] - list[j]) > k:
            Flag = ":("
            break
print(Flag)
Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())

if(e-a > k):
  print("Yay!")
else:
  print(":(")

Failing test case input:
1
0
8
8
9
15

Expected output:
Yay!


Actual output:
:(


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())
 
if(e-a <= k):
  print("Yay!")
else:
  print(":(")

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
k=int(input())
if e-a>k:
    print(':(')
else:
    ('Yay!')

Failing test case input:
1
0
5
8
3
15

Expected output:
Yay!


Actual output:

Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
k=int(input())
if e-a>k:
    print(':(')
else:
    print('Yay!')

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k= int(input())
if (b-a)<=k and (c-b)<=k and (d-c)<=k and (e-d)<=k:
    print('Yay!')
else:
    print(':(')

Failing test case input:
15
18
26
35
36
18

Expected output:
:(

Actual output:
Yay!


Fixed submission (verdict: Accepted):
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k= int(input())
data_list = [a,b,c,d,e]
if max(data_list)-min(data_list)<=k:
    print('Yay!')
else:
    print(':(')

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
p = []
for i in range(5):
    p.append(int(input()))

k = int(input())
for i in range(5):
    for j in range(4-i):
        if p[i] - p[j] >k:
            print(":(")
            exit()
print("Yay!")

Failing test case input:
1
0
4
8
18
15

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
p = []
for i in range(5):
    p.append(int(input()))

k = int(input())
for i in range(5):
    for j in range(i+1,5):
        if p[j] - p[i] >k:
            print(":(")
            exit()
print("Yay!")

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
ant = []

for i in range(5):
    ant.append(int(input()))
k = int(input())

for i in range(0,5):
    for j in range(i+1,5):
      if ant[j] - ant[i] > k:
            print(':(')
            exit()
print('Yey!')

Failing test case input:
1
0
5
5
8
22

Expected output:
Yay!


Actual output:
Yey!


Fixed submission (verdict: Accepted):
ant = []
 
for i in range(5):
    ant.append(int(input()))
k = int(input())
 
for i in range(0,5):
    for j in range(i+1,5):
        if abs(ant[i] - ant[j]) > k:
            print(':(')
            exit()
print('Yay!')
Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a_list = []
for i in range(5):
  a_list.append(int(input()))
k = int(input())

frag = True
for i in range(1,5):
  if a_list[i] - a_list[i-1] > k:
    frag = False
    
if frag == True:
  print("Yay!")
else:
  print(":(")
    

Failing test case input:
15
18
26
35
36
18

Expected output:
:(

Actual output:
Yay!


Fixed submission (verdict: Accepted):
a_list = []
for i in range(5):
  a_list.append(int(input()))
k = int(input())

frag = True
if max(a_list) - min(a_list) > k:
  frag = False
    
if frag == True:
  print("Yay!")
else:
  print(":(")

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m_list = list()
for k in range(6):
    m = int(input())
    m_list.append(m)

x_list = list()
count = 0
for i in range(0, len(m_list)-2):
    for j in range(i+1, len(m_list)-1):
        x_list.append(m_list[i] - m_list[j])

for a in range(len(x_list)):
    if x_list[a] >= 15 or x_list[a] <= -15:
        count += 1

if count >= 1:
    print(":(")
else:
    print("Yay!")

Failing test case input:
1
-2
8
13
6
23

Expected output:
Yay!


Actual output:
:(


Fixed submission (verdict: Accepted):
m_list = list()
for k in range(5):
    m = int(input())
    m_list.append(m)
num = int(input())

x_list = list()
count = 0
for i in range(0, len(m_list)-1):
    for j in range(i+1, len(m_list)):
        x_list.append(m_list[j] - m_list[i])

for a in range(len(x_list)):
    if x_list[a] > num:
        count += 1

if count >= 1:
    print(":(")
else:
    print("Yay!")

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
k=int(input())
if abs(a-b)<=k and abs(b-c)<=k and abs(c-d)<=k and abs(d-e)<=k:
    print("Yay!")
else: 
    print(":(")

Failing test case input:
1
0
4
8
18
15

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
k=int(input())
if max(a,b,c,d,e)-min(a,b,c,d,e)<=k:
    print("Yay!")
else: 
    print(":(")

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



box = []
for i in range(0,5):
    box.append(int(input()))
k = int(input())
c = 0
for i in range(0,4):
    if box[i+1] - box[i] > k :
        c +=1
    else:
        pass
if c == 0:
    print("Yay!")
else:
    print(":(")

Failing test case input:
15
18
26
35
36
18

Expected output:
:(

Actual output:
Yay!


Fixed submission (verdict: Accepted):



import itertools
box = []
for i in range(0,5):
    box.append(int(input()))
k = int(input())
c = 0
for two in list(itertools.combinations(box,2)):
    if (two[1]- two[0] > k):
        c +=1
    else:
        pass
if c == 0:
    print("Yay!")
else:
    print(":(")
Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
inputstr1 = [input() for inputstr1 in range(6)]

a = int(inputstr1[0])
b = int(inputstr1[1])
c = int(inputstr1[2])
d = int(inputstr1[3])
e = int(inputstr1[4])
k = int(inputstr1[5])

inputmax = max(a, b, c, d, e)
inputmin = min(a, b, c, d, e)


if inputmax - inputmin <= k :
    print("yay!")
else:
    print(":(")

Failing test case input:
1
0
7
2
7
23

Expected output:
Yay!


Actual output:
yay!


Fixed submission (verdict: Accepted):
inputstr1 = [input() for inputstr1 in range(6)]

a = int(inputstr1[0])
b = int(inputstr1[1])
c = int(inputstr1[2])
d = int(inputstr1[3])
e = int(inputstr1[4])
k = int(inputstr1[5])

inputmax = max(a, b, c, d, e)
inputmin = min(a, b, c, d, e)


if inputmax - inputmin <= k :
    print("Yay!")
else:
    print(":(")

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = []
for i in range(6):
    a.append(int(input()))

result = 'Yay!'
for i, a1 in enumerate(range(len(a) - 1)):
    for j, a2 in enumerate(range(len(a) - 1)):
        if i != j and i - j < a[-1]:
            result = ':('
print(result)


Failing test case input:
1
0
5
8
4
15

Expected output:
Yay!


Actual output:
:(


Fixed submission (verdict: Accepted):
import itertools

a = []
for i in range(6):
    a.append(int(input()))

result = 'Yay!'

for each in itertools.combinations(a[0:len(a)-1], 2):
    if abs(each[0] - each[1]) > a[-1]:
        result = ':('

print(result)

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

if e-a>k:
  print(':(')
else:
  print('Yey!')

Failing test case input:
1
0
5
13
8
15

Expected output:
Yay!


Actual output:
Yey!


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

if e-a>k:
  print(':(')
else:
  print('Yay!')

Problem: p03075
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b,c,d,e,k=int(input()),int(input()),int(input()),int(input()),int(input()),int(input())
if k<max(b-a,c-b,d-c,e-d):
  print('Yay!')
else:
  print(':(')

Failing test case input:
1
0
7
1
18
2

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
a,b,c,d,e,k=int(input()),int(input()),int(input()),int(input()),int(input()),int(input())
if k>=max(a,b,c,d,e)-min(a,b,c,d,e):
  print('Yay!')
else:
  print(':(')

Problem: p03075
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = [int(input()) for i in range(5)]
k = int (input())
min_dis = min([abs(A[i] - A[j]) for i in range(5) for j in range(i+1, 5)])
print(":(") if min_dis > k else print("Yay!")


Failing test case input:
1
0
5
8
4
1

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
A = [int(input()) for i in range(5)]
k = int (input())
max_dis = max([abs(A[i] - A[j]) for i in range(5) for j in range(i+1, 5)])
print(":(") if max_dis > k else print("Yay!")