Problem: In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively.   Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k.   Determine if there exists a pair of antennas that cannot communicate **directly**.   Here, assume that the distance between two antennas at coordinates p and q (p < q) is q - p.

Submission attempts (in order):
import sys

args = [int(input()) for i in range(6)]

 if (args[4] - arg[0]) > args[5]:
    print(":(")
print("Yay!")

import sys

args = [int(input()) for i in range(6)]

 if (args[0] - arg[4]) > args[5]:
        print(":(")
        sys.exit()
print("Yay!")

import sys

args = [input() for i in range(6)]

for arg1 in args[:5]:
    for arg2 in args[1:5]:
        if (arg2 - arg1) > args[5]:
            print(":(")
            sys.exit()
print("Yay!")


import sys

loops1 = 4
loops2 = 5
arg1 = 0
arg2 = 1

i=0
j=0

int args = [input() for i in range(6)]

for i in range(arg1,loops1):
	for j in range(arg2,loops2):
		if (args[j] - args[i]) > args[5]:
			print(":(")
			sys.exit()
print("Yay!")
	            

import sys

args = [int(input()) for i in range(6)]

 if (args[0] - arg[4]) > args[5]:
            print(":(")
            sys.exit()
print("Yay!")

import sys

args = [input() for i in range(6)]

loops1 = 4
loops2 = 5
arg1 = 0
arg2 = 1

for i in range(arg1,loops1):
	for j in range(arg2,loops2):
		if (args[j] - args[i]) > args[5]:
			print(":(")
			sys.exit()
print("Yay!")
	             


import sys

loops1 = 4
loops2 = 5
arg1 = 0
arg2 = 1

i=0
j=0

args = [input() for i in range(6)]


for i in range(arg1,loops1):
	for j in range(arg2,loops2):
		if (args[j] - args[i]) > args[5]:
			print(":(")
			sys.exit()
print("Yay!")
	           


import sys

args = [input() for i in range(6)]

loops1 = 4
loops2 = 5
arg1 = 0
arg2 = 1

for i in range(arg1,loops1):
	for j in range(arg2,loops2):
		if (args[j] - args[i]) > args[5]:
			print(":(")
			sys.exit()
print("Yay!")
	             

import sys

args = [int(input()) for i in range(6)]
smallest = 0
i = 0
sum = 0
arg_num = 0

for tmp in args[:5]:
    if tmp % 10 < smallest:
        if tmp %10 != 0:
            smallest = tmp
            arg_num = i
    i+=1

for i in range(5):
    if i != arg_num:
        args[i] = args[i] + 10 - tmp % 10
    sum += args[i]

print(sum)

import sys

args = [input() for i in range(6)]

for arg1 in args[:5]:
    for arg2 in args[1:5]
        if (arg2 - arg1) > args[5]:
            print(":(")
            sys.exit()
print("Yay!")

import sys

args = [input() for i in range(6)]

for arg1 in args[:5]:
    for arg2 in args[1:5]
        if (arg2 - arg1) > args[5]:
            print(":(")
            sys.exit()
print("Yay!")

import sys

args = [int(input()) for i in range(6)]

if (args[4] - arg[0]) > args[5]:
    print(":(")
    sys.exit()
print("Yay!")

import sys

args = [int(input()) for i in range(6)]

if (args[4] - args[0]) > args[5]:
    print(":(")
    sys.exit()
print("Yay!")

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Accepted