Problem: p03075
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
import sys,heapq
from collections import deque,defaultdict
printn = lambda x: sys.stdout.write(x)
inn = lambda : int(input())
inl   = lambda: list(map(int, input().split()))
inm   = lambda:      map(int, input().split())
DBG = True 
def ddprint(x):
  if DBG:
    print(x)

a = inn()
b = inn()
c = inn()
d = inn()
e = inn()
k = inn()
print(':(' if e-a > k else 'Yay')


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

Expected output:
Yay!


Actual output:
Yay


Fixed submission (verdict: Accepted):
import sys,heapq
from collections import deque,defaultdict
printn = lambda x: sys.stdout.write(x)
inn = lambda : int(input())
inl   = lambda: list(map(int, input().split()))
inm   = lambda:      map(int, input().split())
DBG = True 
def ddprint(x):
  if DBG:
    print(x)

a = inn()
b = inn()
c = inn()
d = inn()
e = inn()
k = inn()
print(':(' if e-a > k else 'Yay!')

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

ok = True
for i in range(4):
    left = antennas[i]
    for a in antennas[i+1:]:
        if left > k:
            ok = False
            break
    if not ok:
        break

if ok:
    print('Yay!')
else:
    print(':(')


Failing test case input:
1
0
4
8
18
15

Expected output:
:(


Actual output:
Yay!


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

ok = True
for i in range(4):
    left = antennas[i]
    for a in antennas[i+1:]:
        if a - left > k:
            ok = False
            break
    if not ok:
        break

if ok:
    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 b-a>k:
  print(':(')
  exit()
if c-b>k:
  print(':(')
  exit()
if d-c>k:
  print(':(')
  exit()
if e-d>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())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
k=int(input())
antena=[a,b,c,d,e]
for i in antena:
  for j in antena:
    if abs(i-j)>k:
      print(':(')
      exit()
print('Yay!')

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

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

Failing test case input:
1
0
5
8
8
22

Expected output:
Yay!


Actual output:
:(


Fixed submission (verdict: Accepted):
a = int(input())
b = input()
c = input()
d = 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):
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
-2
5
13
10
15

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