Problem: Given is a sequence of integers A_1, A_2, ..., A_N. If its elements are pairwise distinct, print `YES`; otherwise, print `NO`.

Submission attempts (in order):
n=int(input())
m=int(input())
if (str(n) in str(m)) == True:
  print("Yes")
else:
  print("No")

n =int(input())
a = list(map(int,input().split()))
x=0
for i in range(n):
  if a.count(a[i]) != 1:
    print("NO")
    x=1
    break
    
if x == 0:
  print("Yes")

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


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("Yes")
        x = 1
        break

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


n=input()
m=input()
if n in m == True:
  print("Yes")
else:
  print("No")

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

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


n = int(input())
a = list(int(x) for x in input().split())
x = 0
for i in range(n):
    if a.count(a[i]) != 1:
        print("No")
        x = 1
        break

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


n = int(input())
b = (int(x) for x in input().split())
a = list(b)
x = 0
for i in range(n):
    if a.index(a[i]) != 1:
        print("Yes")
        x = 1
        break

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


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


n = int(input())
b = (int(x) for x in input().split())
a = list(b)
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")


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


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


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


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


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


n = int(input())
b = (int(x) for x in input().split())
a = list(b)
x = 0
for i in range(n):
    for j in range(n - i - 1):
        if a[i] == a[i + j + 1]:
            print("No")
            x = 1
            break
 
if x == 0:
    print("Yes")

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

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


n=input()
m=input()
if m in n == True:
  print("Yes")
else:
  print("No")

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


n=int(input())
m=int(input())
if (str(n) in str(m)) is True:
  print("Yes")
else:
  print("No")

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

Verdicts: Runtime Error

Wrong Answer

Runtime Error

Wrong Answer

Wrong Answer

Runtime Error

Runtime Error

Wrong Answer

Wrong Answer

Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Wrong Answer

Wrong Answer

Runtime Error

Accepted