Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())
a = list(map(int, input().split(" ")))
deta = []
error = False

for i in range(n):
    if n == 0:
        pass
    elif error:
        break
    elif a[i] in deta:
        error = True
        break
    deta.append(a[i])
if error:
    print("NO")
else:
    print("YES")

Fixed submission:
n = int(input())
a = list(map(int, input().split(" ")))
deta = set()
error = False

for i in range(n):
    if n == 0:
        pass
    elif error:
        break
    elif a[i] in deta:
        error = True
        break
    deta.add(a[i])
if error:
    print("NO")
else:
    print("YES")

Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())
a = list(map(int, input().split(" ")))
deta = []
error = False

for i in range(n):
    if n == 0:
        pass
    elif error:
        break
    elif a[i] in deta:
        error = True
        break
    deta.append(a[i])
if error:
    print("NO")
else:
    print("YES")

Fixed submission:
n = int(input())
a = list(map(int, input().split(" ")))
deta = set()
error = False

for i in range(n):
    if n == 0:
        pass
    elif error:
        break
    elif a[i] in deta:
        error = True
        break
    deta.add(a[i])
if error:
    print("NO")
else:
    print("YES")

Buggy python submission (verdict: Time Limit Exceeded):
n=int(input())
a=list(map(int,input().split(" ")))
deta=[]
error=False
    
for i in range(n):
    if len(deta)==0:
        pass
    elif error:
        break
    elif a[i] in deta:
        error=True
    deta.append(a[i])
if error:
    print("NO")
else:
    print("YES")

Fixed submission:
n = int(input())
a = list(map(int, input().split(" ")))
deta = set()
error = False

for i in range(n):
    if n == 0:
        pass
    elif error:
        break
    elif a[i] in deta:
        error = True
        break
    deta.add(a[i])
if error:
    print("NO")
else:
    print("YES")

Buggy python submission (verdict: Runtime Error):
    n=int(input())
    a=list(map(int,input().split(" ")))
    deta=[]
    error=False
     
    for i in range(n):
      if len(deta)==0:
        pass
      elif error:
        break
      elif a[i] in deta:
        error=True
      deta.append(a[i])
    if error:
      print("YES")
    else:
      print("NO")

Fixed submission:
n = int(input())
a = list(map(int, input().split(" ")))
deta = set()
error = False

for i in range(n):
    if n == 0:
        pass
    elif error:
        break
    elif a[i] in deta:
        error = True
        break
    deta.add(a[i])
if error:
    print("NO")
else:
    print("YES")

Buggy python submission (verdict: Runtime Error):
    n=int(input())
    a=list(map(int,input().split(" ")))
    deta=[]
    error=False
    try:
      for i in range(n):
        if len(deta)==0:
          pass
        elif error:
          break
        elif a[i] in deta:
          error=True
        deta.append(a[i])
    if error:
      print("YES")
    else:
      print("NO")

Fixed submission:
n = int(input())
a = list(map(int, input().split(" ")))
deta = set()
error = False

for i in range(n):
    if n == 0:
        pass
    elif error:
        break
    elif a[i] in deta:
        error = True
        break
    deta.add(a[i])
if error:
    print("NO")
else:
    print("YES")

Buggy python submission (verdict: Runtime Error):
n=int(input())
a=list(map(int,input().split(" ")))
deta=[]
error=False
try:
  for i in range(n):
    if error:
      break
    elif a[i] in deta:
      error=True
    
if error:
  print("YES")
else:
  print("NO")

Fixed submission:
n = int(input())
a = list(map(int, input().split(" ")))
deta = set()
error = False

for i in range(n):
    if n == 0:
        pass
    elif error:
        break
    elif a[i] in deta:
        error = True
        break
    deta.add(a[i])
if error:
    print("NO")
else:
    print("YES")

Buggy python submission (verdict: Runtime Error):
n=int(input())
a=list(map(int,input().split(" ")))
deta=[]
try:
  for i in range(n):
  if a[i] in deta:
	raise "err"
except err:
	print("NO")
print("YES")

Fixed submission:
n = int(input())
a = list(map(int, input().split(" ")))
deta = set()
error = False

for i in range(n):
    if n == 0:
        pass
    elif error:
        break
    elif a[i] in deta:
        error = True
        break
    deta.add(a[i])
if error:
    print("NO")
else:
    print("YES")