Problem:
 Score : 300 points    Problem Statement Given is a sequence of integers A_1, A_2, ..., A_N .
If its elements are pairwise distinct, print YES ; otherwise, print NO .      Constraints  2 ≤ N ≤ 200000  1 ≤ A_i ≤ 10^9  All values in input are integers.         Input Input is given from Standard Input in the following format:  N  A_1  ...  A_N       Output If the elements of the sequence are pairwise distinct, print YES ; otherwise, print NO .        Sample Input 1 5
2 6 1 4 5      Sample Output 1 YES  The elements are pairwise distinct.       Sample Input 2 6
4 1 3 1 6 2      Sample Output 2 NO  The second and fourth elements are identical.       Sample Input 3 2
10000000 10000000      Sample Output 3 NO

Solution (Python):
n=int(input())
*H, = map(int, input().split())
def has_duplicates(seq):
    return len(seq) != len(set(seq))
if has_duplicates(H) == False:
    print('YES')
else:
    print('NO')

Solution (Python):
n = int(input())
list_a = list(map(int, input().split()))
set_a = set(list_a)

if len(set_a) == len(list_a):
    print("YES")
else:
    print("NO")

Solution (Python):
n = int(input())
a = list(map(int, input().split()))

if len(set(a)) == n:
    print("YES")
else:
    print("NO")

Solution (Python):
len1 = int(input())
len2 = len(set(input().split(" ")))
if len1 == len2:
  print("YES")
else:
  print("NO")

Solution (Python):
N = int(input())
A = set([int(i) for i in input().split()])

if len(A) == N:
    print("YES")
else:
    print("NO")

Solution (Python):
num = input()
str_list = input().split(" ")
 
yes = True
num_dict = {}
for s in str_list:
	if s in num_dict:
		yes = False
		break
	else:
		num_dict[s] = 1
if yes:
	print("YES")
else:
	print("NO")

Solution (Python):
import sys

input_methods=['clipboard','file','key']
using_method=0
input_method=input_methods[using_method]

IN=lambda : map(int, input().split())
mod=1000000007



def main():
	a = int(input())
	al = list(IN())
	set_l=set(al)
	if len(set_l) == a:
		print('YES')
	else:
		print('NO')

	
	

isTest=False

def pa(v):
	if isTest:
		print(v)
		
def input_clipboard():
	import clipboard
	input_text=clipboard.get()
	input_l=input_text.splitlines()
	for l in input_l:
		yield l

if __name__ == "__main__":
	if sys.platform =='ios':
		if input_method==input_methods[0]:
			ic=input_clipboard()
			input = lambda : ic.__next__()
		elif input_method==input_methods[1]:
			sys.stdin=open('inputFile.txt')
		else:
			pass
		isTest=True
	else:
		pass
		
			
	ret = main()
	if ret is not None:
		print(ret)

Solution (Python):
N = input()

A = input().split()

N = int(N)
a = len(set(A))

if N==a:
  print('YES')
else:
  print('NO')

Solution (Python):
n = int(input())
arr = [int(n) for n in input().split()]
_set = set()
for i in range(0, n):
    _set.add(arr[i])
print("YES") if len(_set) == len(arr) else print("NO")

Solution (Python):
import sys
input = sys.stdin.readline
 
 
def main():
  n = int(input())
  x = set(map(int, input().split()))
  length = len(x)
  if n == length:
    print('YES')
  else:
    print('NO')
  
 
if __name__ == '__main__':
  main()

Solution (Python):
N1 = int(input())
A = list(map(int, input().split()))
N2 = len(list(set(A)))

if N1 == N2:
  print('YES')
else:
  print('NO')

Solution (Python):
i=int(input())
x=[int(x) for x in input().split()]
y=set(x)
if(len(y)==len(x)):
    print("YES")
else:
    print("NO")

Solution (Python):
N = int(input())
A_list = [int(item) for item in input().split()]
A_set = set(A_list)

if len(A_list) == len(A_set):
    print('YES')
else:
    print('NO')

Solution (Python):
n=int(input())
l=input().split()
if len(l)==len(set(l)):
    print('YES')
else:
    print('NO')

Solution (Python):
n = int(input())
a = list(map(int,input().split()))

b = set(a)

if len(a) == len(b):
  print('YES')
else:
  print('NO')

Solution (Python):
l = int(input())
num_lis = list(input().split())
ans = 'YES'
for i in range(l):
    num_lis[i] = int(num_lis[i])
num_lis = sorted(num_lis)
for i in range(l-1):
    if num_lis[i] == num_lis[i+1]:
        ans = 'NO'
print(ans)

Solution (Python):
N = int(input())
A = list(map(int, input().split()))
A_set = set(A)
if len(A_set) == N:
    print("YES")
else:
    print("NO")

Solution (Python):
N = int(input())
A = input().split()
A.sort()
f = 0

for i in range(N - 1):
    if A[i] == A[i+1]:
        print("NO")
        f += 1
        break

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

Solution (Python):
N = int(input())
A = list(map(int, input().split()))

def check(seq):
    if len(seq) != len(set(seq)):
        return "NO"
    else:
        return "YES"

print(check(A))

Solution (Python):
N = int(input())
A = list(map(int, input().split()))

if (len(A) == len(set(A))):
  print("YES")
else:
  print("NO")

Solution (Python):
N = int(input()) 

An = [int(x) for x in input().split() ]

ii = len(An)

if len( set(An) ) == ii:
    print('YES')
else:
    print('NO')

Solution (Python):
import collections
N=int(input())
L=list(map(int,input().split()))
a=len(L)
c=len(set(L))
if a==c:
    print('YES')
else:print('NO')

Solution (Python):
def areDistinct(arr) : 
  
    n = len(arr) 
    s = set() 
    for i in range(0, n):  
        s.add(arr[i]) 
    return (len(s) == len(arr)) 
N = int(input())
S =  [int(x) for x in input().split()]
  
if (areDistinct(S)):  
    print("YES") 
  
else :  
    print("NO")

Solution (Python):
N=int(input())
A=input().split()
A = [int(a) for a in A]
 
A.sort()

count=True

for i in range(N-1):
    if A[i]==A[i+1]:
        count=False
        break
    
if count:
    print("YES")
else:
    print("NO")

Solution (Python):
N = int(input())
arr = list(map(int, input().split()))
arr.sort()

for i in range(1, N):
    if arr[i] == arr[i-1]:
        print("NO")
        quit()
print("YES")

Solution (Python):
def solve(n, a):
    a.sort()
    for i in range(n - 1):
        if(a[i] == a[i + 1]):
            return 'NO'

    return 'YES'

n = int(input())
a = list(map(int, input().split()))

print(solve(n, a))

Solution (Python):
def areDistinct(arr) : 
  
    n = len(arr) 
    s = set() 
    for i in range(0, n):  
        s.add(arr[i]) 
    return (len(s) == len(arr)) 
N = int(input())
S =  [int(x) for x in input().split()]
  
if (areDistinct(S)):  
    print("YES") 
  
else :  
    print("NO")

Solution (Python):
import sys
n = int(input())
a = list(map(int, input().split()))
if len(a) != len(set(a)):
    print('NO')
else:
    print('YES')

Solution (Python):
N = int(input())
A = input().split()
A.sort()
frag = None
for i in range(N-1):
  if A[i] ==A[i+1]:
    print('NO')
    frag = 1
    break
if frag == None:
  print('YES')

Solution (Python):
N = int(input())
x = [N]
store = []
x = input().split()
for i in x:
    i = int(i)
    store.append(i)
if len(set(store)) != len(store):
    print('NO')
else:
    print('YES')

Solution (Python):
n = int(input())
A = sorted(input().split(),reverse=True)

for i in range(n-1):
    if A[i] == A[i+1]:
        print('NO')
        exit()
print('YES')

Solution (Python):
N = int(input())

NumArr = [int(num) for num in input().split()]

flg = len(NumArr) == len(set(NumArr))

if flg:
    print('YES')
else:
    print('NO')

Solution (Python):
N=int(input())
A=list(map(int,input().split()))
A.sort()

for i in range(N-1):
    if A[i]==A[i+1]:
        print("NO")
        break
else:
    print("YES")

Solution (Python):
N=int(input())
n=list(map(int,input().split()))
A=len(n)
m=set(n)
B=len(m)
if A==B:
    print("YES")
else:
    print("NO")

Solution (Python):
a=int(input())
list_a = [int(x) for x in input().split()]
set_a = set(list_a)
list_b = list(set_a)

list_a.sort()
list_b.sort()
if list_a == list_b:
    print("YES")
else:
    print("NO")

Solution (Python):
'''
Author:Fuad Ashraful Mehmet
University of Asia Pacific
Date:09 Feb 2020
'''

class Distinct:

    def __init__(self,n):
        self.n=n
        self.numbers=list(map(int,input().split()))
    
    def solve(self):
        if len(set(self.numbers))==self.n:
            return "YES"
        return "NO"

obj=Distinct(int(input()))

print(obj.solve())

Solution (Python):

def pin(type=int):
    return map(type,input().split())

def worstdata():
    a=0
    return a

def comp(p):
    return ((p+1)/2)




n,=(pin())
S=sorted(list(pin()))
cond=1
for i in range(1,n):
    if S[i]-S[i-1]==0:
        cond=0
        break

print(["NO","YES"][cond])

Solution (Python):
N=input()
A=input().split()
def has_duplicates(seq):
    return len(seq) != len(set(seq))
if has_duplicates(A):
  print("NO")
else:
  print("YES")

Solution (Python):
n=int(input())
a=[i for i in map(int, input().split())]

a.sort()
for i in range(n-1):
    if a[i]==a[i+1]:
        print('NO')
        exit(0)
print('YES')

Solution (Python):
def eq(seq):
    return len(seq) != len(set(seq))
n = int(input())
i = list(map(int,input().split()))
if eq(i):
  print("NO")
else:
  print("YES")

Solution (Python):
n = input()

arr = input().split()


def distinct(arr):
    n = len(arr)
    s = set()
    for i in range(0, n):
        s.add(arr[i])

    return len(s) == len(arr)


if distinct(arr):
    print('YES')
else:
    print('NO')

Solution (Python):


if __name__ == "__main__":
    U = input()
    A = input().split()

    A_uni = set(A)

    if len(A) != len(A_uni):
        ret  = "NO"
    else:
        ret = "YES"

    print(ret)

Solution (Python):
N=int(input())

A=list(map(int, input().split()))

if len(A) == len(set(A)):
    print('YES')
else:
    print('NO')

Solution (Python):
N = input()
a = input().split()

def has_duplicates(seq):
    return len(seq) != len(set(seq))
  
b = has_duplicates(a)
if b == True:
  print('NO')
if b == False:
  print('YES')

Solution (Python):

n = int(input())
a = list(map(int,input().split()))

b = set(a)

if len(a) == len(b):
    print("YES")
else:
    print("NO")

Solution (Python):
def has_duplicates(seq):
    return len(seq) != len(set(seq))

N = int(input())
A = list(map(int, input().split()))

if has_duplicates(A) == True:
  print("NO")
else:
  print("YES")

Solution (Python):
N = input()
A = list(input().split())

Set_A = set(A)

if len(Set_A) == len(A):
    print('YES')

else:
    print('NO')

Solution (Python):
n = int(input())
A = list(map(int, input().split()))
dic = {}
j = True

for i in range(0, len(A)):
  if str(A[i]) in dic:
    print("NO")
    j = False
    break
  else:
    dic.setdefault(str(A[i]), A[i])

if j:
  print("YES")

Solution (Python):
N=int(input())
Ai = list(map(int,input().split()))

Ai.sort()

flag = 0
for i in range(N-1):
  if(Ai[i] == Ai[i+1]):
    flag=1
    break
if (flag):
  print('NO')
else:
  print('YES')

Solution (Python):
a=int(input())
b=[int(i) for i in input().split()]
c=list(set(b))
if len(b)==len(c):
    print('YES')
else:
    print('NO')

Solution (Python):
N=int(input())
A=input().split()
if len(set(A))==N:
    print("YES")
else:
    print("NO")

Solution (Python):
N = int(input())
A = list(map(int, input().split()))

def has(seq):
    return len(seq) != len(set(seq))

if(has(A)):
    print('NO')
else:
    print('YES')

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
a.sort()
m = 0
i = 0
while True:
    if a[i] == a[i + 1]:
        m = 1
        break
    elif i == n - 2:
        break
    i += 1
if m == 0:
    print("YES")
else:
    print("NO")

Solution (Python):
N = int(input())
A_list = list(map(int,input().split()))
A_list.sort()
sw = 0
for i in range(len(A_list)-1):
  if A_list[i] == A_list[i+1]:
    sw = 1
    break
if sw == 0:
  print('YES')
else:
  print('NO')

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
a.sort()
flag = False
for i in range(len(a)-1):
    if a[i] == a[i+1]:
        flag = True
        break
if flag:
    print("NO")
else:
    print("YES")

Solution (Python):
n = int(input())
a = list(map(int, input().split()))

a = set(a)

if n == len(a):
    print('YES')
else:
    print('NO')

Solution (Python):
N = int(input())
A = list(map(int, input().split(' ')))

answer = 'YES'
check_dic = {}
for a in A:
    if a in check_dic:
        answer = 'NO'
        break
    else:
        check_dic[a] = True
print(answer)

Solution (Python):
N = int(input())
A = input().split()
if len(A) != len(set(A)):
  print("NO")
else:
  print("YES")

Solution (Python):
N = int(input())
List = [i for i in input().split(" ")]
Dict = {}
flag=0
for i in range(N):
    try:
        Dict[List[i]] += 1
    except KeyError:
        Dict[List[i]] = 1
        
list2 = list(Dict.values())
for j in range(len(list2)):
    if list2[j]>1:
        flag=1
if flag==1:
    print("NO")
else:
    print("YES")

Solution (Python):
S = input()
A = list(map(int, input().split()))
A.sort()
Y=0
Z=0
while Z < int(S)-1:
  if int(A[Z]) - int(A[Z+1]) == 0:
    print("NO")
    Y=1
    break
  else:
    Z = Z+1
    continue
if not Y ==1:
  print("YES")

Solution (Python):
n = int(input())
a = list(map(int,input().split()))
if len(set(a)) == len(a):
	print("YES")
else:
	print("NO")

Solution (Python):
N = int(input())
i = list(map(int, input().split()))

def has_duplicates(seq):
    if len(seq) != len(set(seq)):
        return 'NO'
    else:
        return 'YES'

print(has_duplicates(i))

Solution (Python):
n = int(input())
A = list(map(int,input().split()))
if(len(A) == len(set(A))):
    print('YES')
else:
    print('NO')

Solution (Python):
def solve():
    N = int(input())
    array = sorted(map(int, input().split()))
    for index in range(1, N):
        if array[index] == array[index - 1]:
            print("NO")
            return
    print("YES")
solve()

Solution (Python):
input()
l = input().split()
d = set(l)
print('YES' if len(l) == len(d) else 'NO')

Solution (Python):
n = int(input())
line = input().split(' ')
nums = []
for i in range(n):
  nums.append(int(line[i]))
if len(nums) == len(set(nums)):
  print("YES")
else:
  print("NO")

Solution (Python):
n = int(input())
a = list(map(int,input().split()))
b = set(a)
if n == len(b):
  print("YES")
else:
  print("NO")

Solution (Python):
from collections import defaultdict as d
n = int(input())
a = list(map(int,input().split()))
m1 = d(int)
for i in a:
  m1[i]+=1


flag=0
for i in m1.values():
  if i >1:
    print("NO")
    flag=1
    break

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

Solution (Python):
n = input()
a = list(map(int, input().split()))
def has_duplicates(seq):
    return len(seq) != len(set(seq))
if has_duplicates(a):
    print('NO')
else:
    print('YES')

Solution (Python):
N = input().strip()
Arr = input().strip().split(' ')
if len(Arr) - len(set(Arr)) == 0:
  print('YES')
else:
  print('NO')

Solution (Python):

a = int(input())
b = input().split()
if len(set(b)) != len(b):
	print('NO')
else:
	print('YES')

Solution (Python):
first_int = int(input())
secound_list = [int(k) for k in input().split()]

def has_duplicates(seq):
    return len(seq) != len(set(seq))

if has_duplicates(secound_list) == False:
  print('YES')
else:
  print('NO')

Solution (Python):



N = int(input())
A = list(map(int, input().split())) 

if len(A)-len(set(A))==0:
    ans='YES'
else:
    ans='NO'










print(ans)

Solution (Python):
N = input()
A = input().split()
A = [int(l) for l in A]
A = sorted(A)
m = len(A)
T = "YES"
for i in range(m-1):
  if A[i] == A[i+1]:
    T = "NO"
    break
print(T)

Solution (Python):
def main():
    N = input()
    A_raw = input().split(' ')
    A_n = []
    for i in A_raw:
        A_n.append(int(i))
    
    A_n.sort()
    
    for i in range(len(A_n)):
        if i == len(A_n)-1:
            print('YES')
        elif A_n[i] == A_n[i+1]:
            print('NO')
            return 0
    return 0

main()

Solution (Python):
def main():
    
    n = int(input())
    a = list(map(int,input().split()))
    a.sort()
    for i in range(n-1):
        for j in range(i,i+1):
            if a[i]==a[i+1]:
                print("NO")
                return
    print("YES")

main()

Solution (Python):
N = int(input())
lisA = [int(i) for i in input().split()]
if len(set(lisA)) == len(lisA):
    print('YES')
else :
    print('NO')

Solution (Python):
N = input()
A = [x for x in input().split()]
if len(A) == len(set(A)):
    print("YES")
else:
    print("NO")

Solution (Python):
N = int(input())

nums = tuple(map(int, input().split()))

if len(nums) == len(set(nums)):
    print("YES")
else:
    print("NO")

Solution (Python):
input()
a = input().split()

a.sort()

if any([a1==a2 for a1,a2 in zip(a[:-1], a[1:])]):
    print("NO")
else:
    print("YES")

Solution (Python):
N = int(input())
A = list(input().split())

def has_duplicates(seq):
    return len(seq) != len(set(seq))

if has_duplicates(A):
    print('NO')
else:print('YES')

Solution (Python):
a=int(input())
s = input().split()

if len(set(s))==a:
  print("YES")
else:
  print("NO")

Solution (Python):
n = int(input())
a = input().split(" ")
b = set(a)
if len(b)<len(a):
    answer = "NO"
else:
    answer = "YES"
print(answer)

Solution (Python):
import collections

N = int(input())
A = input().split(' ')

c = collections.Counter(A)

ans = all([True if v == 1 else False for k, v in c.items()])

if ans:
    print('YES')
else:
    print('NO')

Solution (Python):
N = input()
A = [x for x in input().split()]
if len(A) == len(set(A)):
    print("YES")
else:
    print("NO")

Solution (Python):
N = int(input())
A_list = list(map(int, input().split()))

if len(A_list) == len(set(A_list)):
  print("YES")
else:
  print("NO")

Solution (Python):
N = int(input())
A = list(map(int, input().split()))
S = set(A)
if len(S)==len(A):
    print("YES")
else:
    print("NO")

Solution (Python):
n = int(input())
a = input().split()
s = set()

dup = False
for i in a:
    if i in s:
        dup = True
    else:
        s.add(i)

if dup:
    print("NO")
else:
    print("YES")

Solution (Python):
N = int(input())
A_line = list(map(int, input().split()))

A_line.sort()

res = "YES"
for i in range(len(A_line) - 1):
  if A_line[i] == A_line[i + 1]:
    res = "NO"

print(res)

Solution (Python):
n = int(input())
a = list(map(int,input().split()))
count = 0

a.sort()

for i in range(len(a)-1):
    if(a[i] == a[i+1]):
        print("NO")
        break
    elif(i == len(a)-2):
        print("YES")

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
s=set(a)

if len(a)==len(s):
    print('YES')
else:
    print('NO')

Solution (Python):
n,*a = map(int, open(0).read().split())

def has_duplicates(seq):
    return len(seq) != len(set(seq))

if has_duplicates(a) == True:
  print("NO")
else:
  print("YES")

Solution (Python):
length = int(input())
numArr = [int(str_num) for str_num in input().split(' ')]

numArr.sort()

def judge():
  for i in range(0, length - 1):
    if numArr[i] == numArr[i + 1]:
      print("NO")
      return False
  return True

if(judge()):
	print("YES")

Solution (Python):
input()
list = input().split()
print('NO' if len(list) != len(set(list)) else 'YES')

Solution (Python):
n = int(input())
a = list(map(int,input().split(" ")))
a.sort()

ans = 0
for i in range(n-1):
    if a[i] == a[i+1]:
        ans +=1

if ans >= 1:
    print("NO")
else:
    print("YES")

Solution (Python):
n = int(input())
a = list(map(int, input().split()))

a.sort(reverse=True)
f = False
for i in range(n-1):
    if a[i+1] - a[i] == 0:
        f = True
        break

if f == True:
    print('NO')
else:
    print('YES')

Solution (Python):
N = int(input())
s = list(map(int, input().split()))
flag =0
s.sort()

for i in range(0, N-1):
  if s[i] == s[i+1]:
    flag = 1
    break
print("YES") if flag == 0 else print("NO")

Solution (Python):
N = int(input())
A = list(map(int, input().split())) 
if len(list(set(A))) == len(A):
    print('YES')
else:
    print('NO')

Solution (Python):
N = int(input())
A = list(map(int,input().split()))
B = set(A)
if len(B) == len(A): print ('YES')
else: print ('NO')

Solution (Python):
n=int(input())
a = input().split()[:n]

print('YES') if len(a) == len(set(a)) else print('NO')

Solution (Python):
n = int(input())
a = input().split()
if (len(a) == len(set(a))):
  print("YES")
else:
  print("NO")

Solution (Python):
n = int(input())
a = [int(i) for i in input().split()]

a.sort()

for i in range(n-1):
    if a[i] == a[i+1]:
        print('NO')
        break
else:
    print('YES')

Solution (Python):
s = int(input())
l = [int(n) for n in input().split()]
l = sorted(l)
flag = 0

for i in range(len(l)- 1):
  if l[i] == l[i+1]:
    print("NO")
    flag = 1
    break
    
if flag == 0:
  print("YES")

Solution (Python):
n = int(input())
li = list(map(int,input().split()))

li0 = sorted(li)

j = 0
for i in range(n):
  if li0[i-1]==li0[i]:
    j = 1

if j == 0:
  print("YES")
else:
  print("NO")

Solution (Python):
N = int(input())
A = list(map(int, input().split()))

A.sort()
C = True
for i in range(N-1):
    if A[i] == A[i+1]:
        print("NO")
        C = False
        break

if C:
    print("YES")

Solution (Python):
n = int(input())
nums = list(map(int, input().split()))
num_set = set(nums)
if len(nums) == len(num_set):
  print('YES')
else:
  print('NO')

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
if len(list(set(a))) == len(a):
    print('YES')
else:
    print('NO')

Solution (Python):
a = input()
b = input().split()

b.sort()

for i in range(int(a)-1):
    if b[i] == b[i+1]:
        print("NO")
        break
    else:
        if i == int(a)-2:
            print("YES")

Solution (Python):
print('YNEOS'[int(input())!=len(set(input().split()))::2])

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
b = set(a)

print("YES" if len(a) == len(b) else "NO")

Solution (Python):
n = int(input())
A = list(map(int,input().split()))

B = set(A)

print('YES' if len(A)==len(B) else 'NO')

Solution (Python):

import sys

YES = "YES"  
NO = "NO"  


def solve(N: int, A: "List[int]"):
    sortA = sorted(A)
    ans = YES
    for n, e in enumerate(sortA):
        if n != len(sortA)-1 and e == sortA[n+1]:
            ans = NO
            break
    print(ans)
    return



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  
    A = [int(next(tokens)) for _ in range(N)]  
    solve(N, A)

if __name__ == '__main__':
    main()

Solution (Python):
n = int(input())
a = list(map(int, input().split()))

if len(set(a)) == n:
    print('YES')
else:
    print('NO')

Solution (Python):
N = int(input())
A_list = list(map(int, input().split()))
A_set = set(A_list)
if len(A_list) == len(A_set):
    print("YES")
else:
    print("NO")

Solution (Python):
n = int(input())
arr = map(int,input().split())
if len(set(arr)) == n:
    print("YES")
else:
    print("NO")

Solution (Python):
n = int(input())
a = list(input().split())
s = set(a)

if len(s) == len(a):
    print('YES')
else:
    print('NO')

Solution (Python):
num = int(input())
numbers_row = input().split(" ")
numbers = []
for i in numbers_row:
  numbers.append(int(i))
  
Bool = len(numbers) != len(set(numbers))

if Bool == True:
    print("NO")
else:
    print("YES")

Solution (Python):
input()
a = input().split()

a.sort()

if any([a1==a2 for a1,a2 in zip(a[:-1], a[1:])]):
    print("NO")
else:
    print("YES")

Solution (Python):
n = int(input())
a = [int(_) for _ in input().split()]
a.sort()

ans = 0

for i in range(len(a)-1):
  if a[i] == a[i+1]:
    ans = 1

if ans == 0:
  print('YES')
elif ans ==1:
  print('NO')

Solution (Python):
N = int(input())
A = list(map(int, input().split()))
flag = 0
i = 0

A.sort()

for i in range(N - 1):
  if A[i] == A[i + 1]:
    flag = 1

if flag == 0:
  print("YES")
else:
  print("NO")

Solution (Python):
n = int(input())

a_L = list(map(int,input().split()))

if len(a_L) == len(set(a_L)):
    print("YES")
else:
    print("NO")

Solution (Python):
N = input().split()
c = list(map(int, input().split()))

if(len(c) != len(set(c))):
    print("NO")
else:
    print("YES")

Solution (Python):
def main():
    n = int(input())
    vals = list(map(int, input().split()))
    flg = 0

    vals.sort()
    for i in range(n-1):
        if vals[i] == vals[i + 1]:
            flg += 1
            break
    if flg == 0:
        print('YES')
    else:
        print('NO')


if __name__ == "__main__":
    main()

Solution (Python):
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

N,*A = map(int,read().split())

bl = len(set(A)) == N
answer = 'YES' if bl else 'NO'
print(answer)

Solution (Python):


N=int(input())
A_list=list(map(int,input().split()))
A_list_sorted=sorted(A_list)


flag = True
for i in range(N-1):
    target = A_list_sorted[i]

    if target == A_list_sorted[i+1]:
        flag = False
        break

if flag:
    print('YES')
else:
    print('NO')

Solution (Python):
N = int(input())
A = [int(i) for i in input().split()]
def test(A):
    return len(A)!= len(set(A))
if test(A)==False:
    print("YES")
else:
    print("NO")

Solution (Python):
n = input()
a = list(map(int, input().split()))

def has_duplicates(seq):
    return len(seq) != len(set(seq))

ans = has_duplicates(a)
if ans:
    print("NO")
else:
    print("YES")

Solution (Python):



import sys

N = int(input())
A = list(map(int, input().split()))

b = set()
for a in A:
    if a in b:
        print('NO')
        sys.exit()
    else:
        b.add(a)

print('YES')

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
b = len(a)
c = len(set(a))
if b == c:
  print("YES")
else:
  print("NO")

Solution (Python):
N=int(input())
A=list(map(int,input().split()))
if len(A) != len(set(A)):
  print("NO")
else:
  print("YES")

Solution (Python):
N = input()
A = input().split()

B = set(A)

if len(A) == len(B):
    print("YES")
else:
    print("NO")

Solution (Python):
n = int(input())
a = list(input().split())
if n == len(set(a)):
    print("YES")
else:
    print("NO")

Solution (Python):
import sys

N = input()
A = sorted(map(int, input().split()))
for (i,num) in enumerate(A):
  
  if i == len(A) - 1:
    break
  if num == A[i+1]:
    print('NO')
    sys.exit()
print('YES')

Solution (Python):
n = int(input())
a = input().split(" ")
b = set(a)
if len(b)<len(a):
    print("NO")
else:
    print("YES")

Solution (Python):
N = int(input())
A = list(map(int, input().split(" ")))

A.sort()
judge = "YES"
for i in range(N - 1):
    if(A[i] == A[i + 1]):
        judge = "NO"

print(judge)

Solution (Python):
N = int(input())
A = list(map(int,input().split()))
A = list(set(A))
if N==len(A):
    print('YES')
else:
    print('NO')

Solution (Python):


n=int(input())
a=list(map(int, input().split()))

a.sort()
for i in range(n-1):
    if a[i] == a[i+1]:
        print("NO")
        exit()
print("YES")

Solution (Python):
n = int(input())
a = map(int, input().split())

d = {}
for i in a:
	if i in d:
		print("NO")
		exit()
	d[i] = i

print("YES")

Solution (Python):
N = int(input())
nums = list(map(int, input().split()))

numsSet = set(nums)
if len(nums) != len(numsSet):
    print('NO')
else:
    print('YES')

Solution (Python):


N = int(input())
A = list(map(int,input().split()))
n = len(list(A))
m = len(set(A))
if n == m:
    print("YES")
else:
    print("NO")

Solution (Python):
N = int(input())
A = [int(i) for i in input().split()]
f = 0
A.sort()
for i in range(len(A)):
    if i != len(A)-1:
        if A[i] == A[i+1]:
            f = 1
            break
        
if f > 0:
    print("NO")
else:
    print("YES")

Solution (Python):
n = int(input())
a = list(map(int,input().split()))

count = 0
list00 = sorted(a)
for i in range(1, n):
  if list00[i-1] == list00[i]:
    count = count*0
  else:
    count = count + 1

if count == n-1:
  print('YES')
else:
  print('NO')

Solution (Python):
all_num = int(input())
num_list = [int(i) for i in input().split()]

if len(num_list) == len(set(num_list)):
    print('YES')
else:
    print('NO')

Solution (Python):
N = int(input())
A = map(int,input().split())
lensetA = len(set(A))
if N == lensetA:
    print("YES")
else:
    print("NO")

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
m = {}

distinct = True
for i in a:
    if i in m:
        distinct = False
        break
    m[i] = 1
    
if distinct:
    print("YES")
else:
    print('NO')

Solution (Python):
import sys

n = int(input())
a = input().split()
a = sorted(a)

for i in range(len(a)-1):
  if a[i] == a[i+1]:
    print('NO')
    sys.exit()
	
print('YES')

Solution (Python):
N = int(input())
A = input().split()

myset = set(A)

if len(myset) == N:
    print("YES")
else:
    print("NO")

Solution (Python):
N = int(input())
A = set(map(int, input().split()))  
if N==len(A):
  print("YES")
else:
  print("NO")

Solution (Python):
n = input()
s = list(map(int, input().split(' ')))
d = set(s)
if len(s) != len(d):
    print('NO')
else:
    print('YES')

Solution (Python):

n = int(input())
a = list(map(int,input().split()))

a.sort()



ret = False
for i in range(n-1):
        
        
        ret += (a[i] == a[i+1])

print('YES' if ret == 0 else 'NO')

Solution (Python):
n=int(input())
ln = list(map(int, input().split()))
if len(ln) != len(set(ln)):
  print('NO')
else:
  print('YES')

Solution (Python):
low = int(input())
arrow = list(map(int, input().split()))

arrow1 = sorted(arrow)
arrow2 = sorted(arrow, reverse=True)
res = "YES"

for i in range(int(low/2)):
  if arrow1[i] == arrow1[i+1]:
    res = "NO"
    break

if res == "NO":
  print(res)
else:
  for i in range(int(low/2)):
    if arrow2[i] == arrow2[i+1]:
      res = "NO"
      break
    
  print(res)

Solution (Python):
n = int(input())
a = list(map(int, input().strip().split()))

def has_duplicates(seq):
    return len(seq) != len(set(seq))

if has_duplicates(a):
  print("NO")
else:
  print("YES")

Solution (Python):
input();l=list(map(int,input().split()))
print("YNEOS"[len(l)!=len(set(l))::2])

Solution (Python):
n = int(input())
num = list(map(int, input().split()))
num.sort()
det = 0
for i in range(n-1):
    if num[i] == num[i+1]:
        det += 1
    else:
        pass

if det != 0:
    print('NO')
else:
    print('YES')

Solution (Python):
n=int(input())
l=list(map(int, input().split()))
s=set(l)
if len(l)==len(s):
    print('YES')
else:
    print('NO')

Solution (Python):


N = int(input())
A = [int(i) for i in input().split()]
A.sort()
for i in range(1,N):
  if A[i] == A[i-1]:
    ans = "NO"
    break
  else:
    ans = "YES"
print(ans)

Solution (Python):
def areDistinct(arr) : 
  
    n = len(arr) 
  
    
    s = set() 
    for i in range(0, n):  
        s.add(arr[i]) 
      
    
    
    return (len(s) == len(arr)) 
  

N = int(input())
S =  [int(x) for x in input().split()]
  
if (areDistinct(S)):  
    print("YES") 
  
else :  
    print("NO")

Solution (Python):
N = int(input())
A = {int(i) for i in input().split()}
if N == len(A):
    print('YES')
else:
    print('NO')

Solution (Python):
import sys
f = sys.stdin
N = int(f.readline()[:-1])
A = tuple(map(int, f.readline().split(' ')))
d = dict()
result = 'YES'
for a in A:
    try:
        if d[a]:
            result = 'NO'
            break
    except Exception:
        d[a] = True

print(result)

Solution (Python):
n, *seq = map(int, open(0).read().split())

seq.sort()

flag = 0

for i in range(len(seq)-1):
    if seq[i] == seq[i+1]:
        flag = 1
        break
    
if flag == 0:
    print('YES')
else:
    print('NO')

Solution (Python):



def main():
  n = int(input())
  As = map(int, input().strip().split())
  if len(set(As)) == n:
    print('YES')
  else:
    print('NO')

if __name__=='__main__':
  main()

Solution (Python):
n = int(input())
a_list = list(map(int, input().split()))
a_set = set(a_list)
print("YES") if n == len(a_set) else print("NO")

Solution (Python):
N = int(input())
A = [int(x) for x in input().split()]

B = set(A)

if len(A) == len(B):
  print("YES")
else:
  print("NO")