Problem p02779 (python)

Fixed submission:
n = int(input())
a = list(int(x) for x in input().split())
x = 0
 
a.sort()
for i in range(n-1):
    if a[-1] - a[-2] == 0:
        print("NO")
        x = 1
        break
    a.pop()
 
if x == 0:
    print("YES")

Buggy submission (verdict: Runtime Error):
n = int(input())
a = list(int(x) for x in input().split())
x = 0
b = a.reverse()

for i in range(n-1):
    if b[-1] - b[-2] == 0:
        print("NO")
        x = 1
        break
    b.pop()
 
if x == 0:
    print("YES")

Buggy submission (verdict: Runtime Error):
n = int(input())
a = list(int(x) for x in input().split())
x = 0

a.reverse()
for i in range(n):
    if a[0] - a[1] == 0:
        print("NO")
        x = 1
        break
    a.pop(0)

if x == 0:
    print("YES")

Buggy submission (verdict: Runtime Error):
n = int(input())
a = list(int(x) for x in input().split())
x = 0

a.reverse()
for i in range(n):
    if a[-1] - a[-2] == 0:
        print("NO")
        x = 1
        break
    a.pop()

if x == 0:
    print("YES")

Buggy submission (verdict: Runtime Error):
import numpy as np
n = int(input())
a = list(int(x) for x in input().split())

x = 0
for i in range(n):
  b= a[0]
    if (b in np.delete(a, 0)) is True:
        print("NO")
        x = 1
        break

if x == 0:
    print("YES")

Buggy submission (verdict: Runtime Error):
n = int(input())
a = list(int(x) for x in input().split())
x = 0
for i in range(n):
    if a[1] in a is True:
        print("NO")
        x = 1
        break
    a.pop(0)

if x == 0:
    print("YES")

Buggy submission (verdict: Runtime Error):
n = int(input())
a = list(int(x) for x in input().split())
x = 0
for i in range(n):
    if a[i] in a is True:
        print("NO")
        x = 1
        break
    a.pop(0)

if x == 0:
    print("YES")

Buggy submission (verdict: Runtime Error):
n = int(input())
b = int(x) for x in input().split()
a = list(b)
x = 0
for i in range(n):
    if a.count(a[i]) >= 2:
        print("No")
        x = 1
        break

if x == 0:
    print("Yes")

Buggy submission (verdict: Runtime Error):
n = int(input())
b = int(x) for x in input().split()
a = list(b)
x = 0
for i in range(n):
    if a.count(a[i]) > 1:
        print("No")
        x = 1
        break

if x == 0:
    print("Yes")

Buggy submission (verdict: Runtime Error):
n =int(input())
a=(int(x) for x in input().split())
x = 0
for i in range(n):
    for j in range(n - i - 1):
        if a[i] == a[i + j + 1]:
            print("Yes")
            x = 1
            break

if x == 0:
    print("No")

Buggy submission (verdict: Runtime Error):
n = int(input())
m = int(input())

x = 0
a = str(m)
for i in range(n):
    if a.find(a[i]) != i:
        print("Yes")
        break
    x += 1

if x == n:
    print("No")

Buggy submission (verdict: Runtime Error):
n=int(input())
m=int(input())

a=str(m)
for i in range(n):
  for j in range(n-i):
  	if a[i] ==a[i+j]:
      print("Yes")
      break
	print("No")

Buggy submission (verdict: Runtime Error):
n=int(input())
m=int(input())
if (str(n) in str(m)) is True:
  print("Yes")
else:
  print("No")

Buggy submission (verdict: Runtime Error):
n=int(input())
m=int(input())
if (str(n) in str(m)) == True:
  print("Yes")
else:
  print("No")