Problem p02772 (python)

Fixed submission:
n = int(input())
a = map(int,input().split())
for l in a:
    if l % 2 ==0:
        if l % 3 == 0 or l % 5 == 0:
            continue
        else:
            print("DENIED")
            quit()
print("APPROVED")

Buggy submission (verdict: Runtime Error):
n = int(input())
admission = list(map(int,input().split()))

for i in range(n):
    if admission[n] % 2 == 0:
        if admission[n] % 3 == 0 or admission[n] % 5 == 0:
            print("APPROVED")
        else:
            print("DENIED")

Buggy submission (verdict: Runtime Error):
admission = []
n = int(input())
admission.append(map(int,input().split()))

for i in range(n):
    if admission[n] % 2 == 0:
        if admission[n] % 3 == 0 or admission[n] % 5 == 0:
            print("APPROVED")
        else:
            print("DENIED")

Buggy submission (verdict: Runtime Error):
admission = []
n = int(input())
admission.append(map(int,input().split()))

for i in range(n):
    if admission[n-1] % 2 == 0:
        if admission[n-1] % 3 == 0 or admission[n-1] % 5 == 0:
            print("APPROVED")
        else:
            print("DENIED")

Buggy submission (verdict: Runtime Error):
admission = []
n = int(input())
admission.append(map(int,input().split()))

for i in range(n):
    if admission[n+1] % 2 == 0:
        if admission[n+1] % 3 == 0 or admission[n+1] % 5 == 0:
            print("APPROVED")
        else:
            print("DENIED")

Buggy submission (verdict: Runtime Error):
admission = []
n = int(input())
admission.append(map(int,input().split()))

for i in range(n):
    if admission[n-1] % 2 == 0:
        if admission[n-1] % 3 == 0 or admission[n-1] % 5 == 0:
            print("APPROVED")
        else:
            print("DENIED")

Buggy submission (verdict: Runtime Error):
admission = []
n = int(input())
admission.append(map(int,input().split()))

for i in range(n-):
    if admission[n-1] % 2 == 0:
        if admission[n-1] % 3 == 0 or admission[n-1] % 5 == 0:
            print("APPROVED")
        else:
            print("DENIED")

Buggy submission (verdict: Runtime Error):
admission = []
n = int(input())
admission.append(map(int,input().split()))

for i in range(n-1):
    if admission[n-1] % 2 == 0:
        if admission[n-1] % 3 == 0 or admission[n-1] % 5 == 0:
            print("APPROVED")
        else:
            print("DENIED")

Buggy submission (verdict: Runtime Error):
admission = []
n = int(input())
admission.append(map(int,input().split()))

for i in range(n):
    if admission[n] % 2 == 0:
        if admission[n] % 3 == 0 or admission[n] % 5 == 0:
            print("APPROVED")
        else:
            print("DENIED")

Buggy submission (verdict: Runtime Error):
admission = []
n = int(input())
admission.append(map(int,input().split()))

for i in range(n):
    if admission[n] % 2 == 0:
        if admission[n] % 3 == 0 or admission[n] % 5 == 0:
            print("APPROVE")
        else:
            print("DENIED")

Buggy submission (verdict: Runtime Error):
admission = []
n = int(input())
admission.append(map,int(input().split()))

for i in range(n):
    if admission[n] % 2 == 0:
        if admission[n] % 3 == 0 or admission[n] % 5 == 0:
            print("APPROVE")
        else:
            print("DENIED")