ZhenlongDai/ACPR huggingface dataset:
Problem: p03315
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque

def lcm(x, y):
    return (x * y) 

if __name__ == '__main__':
    a = [str(i) for i in input().split()]
    count = 0
    
    for i in a:
        if i == "+":
            count +=1
        else:
            count -=1
    print(count)

Failing test case input:
-+--

Expected output:
-2

Actual output:
-1


Fixed submission (verdict: Accepted):
import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque

def lcm(x, y):
    return (x * y) 

if __name__ == '__main__':
    a = [str(i) for i in input().split()]
    count = 0

    for i in range(4):
        if a[0][i] == "+":
            count +=1
        else:
            count -=1
    print(count)

Problem: p03315
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
ans = 1
for i in input():
    if i == '+':
        ans += 1
    else:
        ans -= 1
print(ans)

Failing test case input:
++--

Expected output:
0


Actual output:
1


Fixed submission (verdict: Accepted):
ans = 0
for i in input():
    if i == '+':
        ans += 1
    else:
        ans -= 1
print(ans)

Problem: p03315
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S_original=input('S: ')
S_list=list(S_original)
length_S=len(S_list)

a=0
i=0

while i < length_S:
  if S_list[i]=='+':
    a += 1
    i += 1
  else:
    a = a-1
    i=i+1
    

print(a)
  

Failing test case input:
--++

Expected output:
0


Actual output:
S: 0


Fixed submission (verdict: Accepted):
S_original=input()
S_list=list(S_original)
length_S=len(S_list)

a=0
i=0

while i < length_S:
  if S_list[i]=='+':
    a += 1
    i += 1
  else:
    a = a-1
    i=i+1
    

print(a)

Problem: p03315
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
char = input()

answer = 0
for i in range(len(char) - 1):
  if(char[i] == '+'):
    answer += 0
  elif(char[i] == '-'):
    answer -= 0
print(answer)

Failing test case input:
-+++

Expected output:
2


Actual output:
0


Fixed submission (verdict: Accepted):
char = input()

answer = 0
for i in range(len(char)):
  if(char[i] == '+'):
    answer += 1
  elif(char[i] == '-'):
    answer -= 1
print(answer)

Problem: p03315
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print(4-input().count("-")*1)

Failing test case input:
--++

Expected output:
0


Actual output:
2


Fixed submission (verdict: Accepted):
print(4-input().count("-")*2)

Problem: p03315
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = sorted(input().split())
ans = 0
for i in s:
    if i == '+':
        ans+=1
    else:
        ans -=1
print(ans)

Failing test case input:
++-+

Expected output:
2


Actual output:
-1


Fixed submission (verdict: Accepted):
s = sorted(input())
ans = 0
for i in s:
    if i == '+':
        ans+=1
    else:
        ans -=1
print(ans)
Problem: p03315
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input().split()
num = 0
for i in s:
	if i == '+':
		num += 1
	else:
		num -= 1
print(num)

Failing test case input:
++-+

Expected output:
2


Actual output:
-1


Fixed submission (verdict: Accepted):
s = list(input())
num = 0
for i in s:
	if i == '+':
		num += 1
	else:
		num -= 1
print(num)

Problem: p03315
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=list(input())
plus=0
mainu=0
for i in range(4):
    if s[i]=="+":
        plus+=1
    elif s[i]=="-":
        mainu+=1
print(mainu+plus)


Failing test case input:
-+++

Expected output:
2


Actual output:
4


Fixed submission (verdict: Accepted):
s=list(input())
plus=0
mainu=0
for i in range(4):
    if s[i]=="+":
        plus+=1
    elif s[i]=="-":
        mainu-=1
print(mainu+plus)

Problem: p03315
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=list(input())
count=1
for i in a:
  if i=='-':
    count-=1
  else:
    count+=1
print(count)

Failing test case input:
++-+

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
a=list(input())
count=0
for i in a:
  if i=='-':
    count-=1
  else:
    count+=1
print(count)
Problem: p02779
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):


from sys import stdin
from itertools import accumulate, dropwhile, takewhile, groupby
import bisect
import copy
import math
import itertools
from functools import reduce
from operator import mul

N = int(stdin.readline().rstrip())
nums = [int(s) for s in stdin.readline().rstrip().split()]
nums.sort()
check = True
for el in range(N):
    if el == N - 1:
        break
    if nums[el] == nums[el + 1]:
        print('No')
        check = False
        break
if check:
    print('Yes')


Failing test case input:
5
3 9 0 -1 2

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):


from sys import stdin
from itertools import accumulate, dropwhile, takewhile, groupby
import bisect
import copy
import math
import itertools
from functools import reduce
from operator import mul

N = int(stdin.readline().rstrip())
nums = [int(s) for s in stdin.readline().rstrip().split()]
nums.sort()
check = True
for el in range(N):
    if el == N - 1:
        break
    if nums[el] == nums[el + 1]:
        print('NO')
        check = False
        break
if check:
    print('YES')

Problem: p02779
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N=int(input())
s=list(map(int,input().split()))




from collections import Counter
S=Counter(s)

if S.most_common(1)[0][1]==1:
    print("YES")
else:
    print("N0")




Failing test case input:
6
1 3 4 -2 4 0

Expected output:
NO


Actual output:
N0


Fixed submission (verdict: Accepted):
N=int(input())
s=list(map(int,input().split()))




from collections import Counter
S=Counter(s)

if S.most_common(1)[0][1]==1:
    print("YES")
else:
    print("NO")

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from sys import stdin


def get_result(data):
    N, A = data[0], data[1]
    return 'Yes' if len(list(set(A))) == N[0] else 'NO'

if __name__ == '__main__':
    raw_data = [val.rstrip('\n') for val in stdin.readlines()]
    data = [list(map(int, val.split(' '))) for val in raw_data]
    result = get_result(data)
    print(result)


Failing test case input:
2
11000100 10101000

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
from sys import stdin


def get_result(data):
    N, A = data[0], data[1]
    return 'YES' if len(set(A)) == N[0] else 'NO'

if __name__ == '__main__':
    raw_data = [val.rstrip('\n') for val in stdin.readlines()]
    data = [list(map(int, val.split(' '))) for val in raw_data]
    result = get_result(data)
    print(result)

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
A = list(map(int, input().split()))
A.sort()
res = A[0]
cnt = True
for n in range(1, N):
    if A[n] <= res:
        cnt= False
if cnt:
    print('YES')
else:
    print('NO')

Failing test case input:
5
1 4 1 -1 2

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
N = int(input())
A = list(map(int, input().split()))
A.sort()
res = A[0]
cnt = True
for n in range(1, N):
    if A[n] == res:
        cnt= False
    res = A[n]
if cnt:
    print('YES')
else:
    print('NO')
Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline

def main():
    N, *A = map(int, read().split())
    for a in A:
        if A.count(a)==1:
            continue
        else:
            result = 'NO'
            return result
    else:
        result = 'Yes'
    return result

if __name__ == '__main__':
    print(main())



Failing test case input:
6
1 3 4 -2 6 0

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
import sys
from collections import defaultdict
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline

def main():
    N, *A = map(int,read().split())
    d = defaultdict(int)
    for a in A:
        d[a] +=1
    if len(A)==len(d):
        result = 'YES'
    else:
        result = 'NO'

    return result

if __name__ == '__main__':
    print(main())

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
a = set(map(int, input().split()))
if len(list(a)) == n:
    print('Yes')
else:
    print('No')


Failing test case input:
5
1 4 1 0 2

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
n = int(input())
a = set(map(int, input().split()))
if len(a) == n:
    print('YES')
else:
    print('NO')

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
r = 0
n = int(input())
a = sorted(list(map(int, input().split())))
for i in range(n - 1):
  if a[i] ==  a[i + 1]:
    r = 1
if r == 1:
  print("No")
else:
  print("Yes")

Failing test case input:
6
4 1 3 1 2 0

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
r = 0
n = int(input())
a = sorted(list(map(int, input().split())))
for i in range(n - 1):
  if a[i] ==  a[i + 1]:
    r = 1
if r == 1:
  print("NO")
else:
  print("YES")

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
t=input().split()
m=t.pop(0)
n=int(m)
if len(set(t))==n:
    print("YES")
else:
    print("NO")


Failing test case input:
2
11001100 10101000

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
n=int(input())
t=input().split()
if len(set(t))==n:
    print("YES")
else:
    print("NO")

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
a = list(map(int, input().split()))

a_set = set(a)
if len(a) == len(a_set):
  print('Yes')
else:
  print('No')
        

Failing test case input:
5
1 4 1 1 2

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
n = int(input())
a = list(map(int, input().split()))

a_set = set(a)
if len(a) == len(a_set):
    print('YES')
else:
    print('NO')
Problem: p02779
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
l = list(map(int,input().split()))
d = {}
for i in l:
    if i in d:
        d[i] += 1
    if i not in d:
        d[i] = 1
length = len(d)
if length ==n:
    print("Yes")
else:
    print("No")

Failing test case input:
6
1 3 4 -2 4 0

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
n = int(input())
l = list(map(int,input().split()))
d = {}
for i in l:
    if i in d:
        d[i] += 1
    if i not in d:
        d[i] = 1
length = len(d)
if length ==n:
    print("YES")
else:
    print("NO")

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x = list(map(int,input().split()))
print("YES" if len(x)==len(set(x)) else "NO")

Failing test case input:
6
6 2 5 -1 2 0

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
input();x = list(map(int,input().split()))
print("YES" if len(x)==len(set(x)) else "NO")

Problem: p02779
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
l1=list(map(int,input().split()))
l2=set(l1)
if(len(l1)==len(l2)):
    print("Yes")
else:
    print("No")

Failing test case input:
2
10000100 10001000

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
n=int(input())
l1=list(map(int,input().split()))

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

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()
A = list(map(int,input().split()))
ans = "YES"
for i in range (len(A)):
    for j in range(i, len(A)):
        if A[i] == A[j]:
            ans = "NO"
print(ans)

Failing test case input:
5
11 12 0 -1 3

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
N = input()
A = sorted(list(map(int,input().split())))
ans = "YES"
for i in range (1,len(A)):
    if A[i] == A[i-1]:
        ans = "NO"
print(ans)

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
numbers = list(map(int, input().split()))

if len(numbers) == N:
  print('YES')
else:
  print('NO')


Failing test case input:
5
1 4 2 -1 -1

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
N = int(input())
numbers = set(map(int, input().split()))

if len(numbers) == N:
  print('YES')
else:
  print('NO')

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
A = list(map(int,input().split()))

flg = 1
for i in range(N):
  if A[i] in A[i+1:]:
    print("No")
    flg= 0
    break
if flg:
  print("Yes")


Failing test case input:
6
6 2 2 0 2 0

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
N = int(input())
A = list(map(int,input().split()))
A.sort()

flg = 1
for i in range(N-1):
  if A[i]==A[i+1]:
    print("NO")
    flg= 0
    break
if flg:
  print("YES")
Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s = list(map(int,input().split()))

if len(s) == len(set(s)):
    print('Yes')
else:
    print('No')


Failing test case input:
5
2 6 0 -2 1

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
N = int(input())
list = list(map(int, input().split()))



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

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

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

A = sorted(A)

for i in range(len(A)-1):
    if A[i] == A[i+1]:
        print("No")
        exit()

print("Yes")
    
    


Failing test case input:
5
7 10 0 -1 3

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):

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

A = sorted(A)

for i in range(len(A)-1):
    if A[i] == A[i+1]:
        print("NO")
        exit()

print("YES")

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
length=input()

Narray=sorted(input().split())
n=0
while n<int(length)-2:
	if Narray[n] == Narray[n+1]:
		print("NO")
		break
	elif n==int(length)-2:
		print("YES")
		break
	else:
		n+=1
    	

Failing test case input:
2
11000100 10001000

Expected output:
YES


Actual output:

Fixed submission (verdict: Accepted):
length=input()

Narray=sorted(input().split())
n=0
while n<int(length)-1:
	if Narray[n] == Narray[n+1]:
		print("NO")
		break
	elif n==int(length)-2:
		print("YES")
		break
	else:
		n+=1

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()
a = input().split()
n = int(n)
a = [int(s) for s in a]
a.sort()

s=0

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

Failing test case input:
5
4 11 0 -1 3

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
n = input()
a = input().split()
n = int(n)
a = [int(s) for s in a]
a.sort()

s=0

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

Problem: p02779
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
import sys
input = sys.stdin.readline


def main():
  n = int(input())
  x = tuple(map(int, input().split()))
  length = len(x)
  if n == length:
    print('YES')
  else:
    print('NO')
  

if __name__ == '__main__':
  main()

Failing test case input:
5
2 9 0 -2 2

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
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()
Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys

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

As.sort()
for i in range(N):
    for j in range(i + 1, N):
        if As[i] == As[j]:
            print('NO')
            sys.exit(0)
        if As[j] > As[i]:
            print('break!')
            break

print('YES')

Failing test case input:
6
1 3 5 -1 2 0

Expected output:
YES


Actual output:
break!
break!
break!
break!
break!
YES


Fixed submission (verdict: Accepted):
import sys

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

As.sort()
for i in range(N):
    for j in range(i + 1, N):
        if As[i] == As[j]:
            print('NO')
            sys.exit(0)
        if As[j] > As[i]:
            break

print('YES')

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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()
if list_a == list_b:
    print("YES")
else:
    print("NO")

Failing test case input:
2
10000000 00101000

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
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")

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
a = list(map(int,input().split()))
if(len(a) == len(set(a))):
    print('Yes')
else:
    print('No')




Failing test case input:
2
11000100 00001000

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
n = int(input())
a = list(map(int,input().split()))
if(len(a) == len(set(a))):
    print('YES')
else:
    print('NO')

Problem: p02779
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N,*a = map(int,open(0).read().split())
a.sort()
flag = True
for i in range(1,N):
  if a[i]==a[i-1]:
    print('No')
    flag=False
    break
if flag ==True:
  print('Yes')

Failing test case input:
5
2 9 1 4 5

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
N,*a = map(int,open(0).read().split())
a.sort()
flag = True
for i in range(1,N):
  if a[i]==a[i-1]:
    print('NO')
    flag=False
    break
if flag ==True:
  print('YES')

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
A = list(map(int,input().split()))

import collections

c = collections.Counter(A)
values, counts = zip(*c.most_common())

if counts[0] != 1:
    print("NO")
else:
    print("Yes")

Failing test case input:
6
1 3 5 -2 4 0

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
N = int(input())
A = list(map(int,input().split()))

import collections

c = collections.Counter(A)
values, counts = zip(*c.most_common())

if counts[0] != 1:
    print("NO")
else:
    print("YES")
Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()
n = int(n)
l = input().split(" ")
s = set(l)


if len(s) == len(l):
  print('Yes')
else:
  print('No')

Failing test case input:
5
2 4 1 3 2

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
n = input()
l = input().split(" ")
s = set(l)

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

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):



N = int(input())
A = list(map(int, input().split()))
if len(A) == len(set(A)):
    print('Yes')
else:
    print('No')

Failing test case input:
6
4 1 3 2 2 0

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):



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

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
A = list(map(int,input().split()))
count = 0

A = sorted(A)

for i in range(N-1):
    if A[i] == A[i+1]:
        count += 1
            
if count == 0:
    print("Yes")
    
else:
    print("No")

Failing test case input:
2
11000100 10101001

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
N = int(input())
A = list(map(int,input().split()))
count = 0

A = sorted(A)

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

Problem: p02779
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()  

n = ni()
a = na()
a.sort()

diff = True
for i in range(n-1):
    if a[i] == a[i+1]:
        diff = False
if diff:
    print("Yes")
else:
    print("No")


Failing test case input:
2
10010100 10101001

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()  

n = ni()
a = na()
a.sort()

diff = True
for i in range(n-1):
    if a[i] == a[i+1]:
        diff = False
if diff:
    print("YES")
else:
    print("NO")

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
a_list = list(map(int, input().split()))
a_hash = {}
for a in a_list:
    if a in a_hash:
        print("No")
        exit()
    a_hash[a] = True
print("Yes")


Failing test case input:
6
1 2 5 -1 2 0

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
n = int(input())
a_list = list(map(int, input().split()))
a_hash = {}
for a in a_list:
    if a in a_hash:
        print("NO")
        exit()
    a_hash[a] = True
print("YES")
Problem: p02779
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N = int(input())
A = list(map(int, input().split()))

print(A)

list=[]
cnt=0
for a in A:
    if a in list:
        print('No')
        break
    else:
        list.append(a)
        cnt+=1
if cnt==N:
    print('Yes')

Failing test case input:
6
1 3 5 -2 4 1

Expected output:
NO


Actual output:
[1, 3, 5, -2, 4, 1]
No


Fixed submission (verdict: Accepted):
N = int(input())
A = list(map(int, input().split()))
A.sort()
cnt=0
for i in range(N-1):
    if A[i]==A[i+1]:
        print('NO')
        break
    else:
        cnt+=1
if cnt==N-1:
    print('YES')

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
a = map(int, input().lower().split())

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


Failing test case input:
2
00000001 01000000

Expected output:
YES


Actual output:
YESS


Fixed submission (verdict: Accepted):
s = input()
a = map(int, input().lower().split())
 
if int(s) == len(set(a)):
  print("YES")
else:
  print("NO")

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())

a = list(map(int, input().split()))
ngcounter = 0
for i in range(n):
  if a[i] in a :
    ngcounter += 1
    break
    
if ngcounter > 0:
  print("No")
else:
  print("Yes")

Failing test case input:
6
6 3 2 2 2 -1

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
n = int(input())

a = list(map(int, input().split()))
ngcounter = 0
a.sort()
for i in range(n-1):
  if a[i] == a[i+1]:
    ngcounter += 1
    break
  
if ngcounter > 0:
  print("NO")
else:
  print("YES")

Problem: p02779
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N = int(input())
A = list(map(int, input().split()))

a = set(A)

if len(A) == len(a):
    print("Yes")
else:
    print("No")


Failing test case input:
6
6 2 6 0 2 0

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
N = int(input())
A = list(map(int, input().split()))

a = set(A)

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

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
A = list(map(int,input().split()))
if len(A) != len(set(A)):
    print("No")
else:
    print("Yes")

Failing test case input:
2
10000100 10000000

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
N = int(input())
A = list(map(int,input().split()))
if len(A) != len(set(A)):
    print("NO")
else:
    print("YES")

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
number = [int(x) for x in input().split()]
sort_number = sorted(number)
s_number = list(set(number))

print("YES" if sort_number == s_number else "NO")

Failing test case input:
2
00001100 01010000

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
N = int(input())
number = [int(x) for x in input().split()]

s_number = set(number)

print("YES" if len(number) == len(s_number) else "NO")
Problem: p02779
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import collections
N = int(input())
A = list(map(int, input().split()))
c = collections.Counter(A)
if c.most_common()[0][1] > 1:
    print('No')
else:
    print('Yes')

Failing test case input:
6
6 5 2 2 1 -1

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
import collections
N = int(input())
A = list(map(int, input().split()))
c = collections.Counter(A)
if c.most_common()[0][1] > 1:
    print('NO')
else:
    print('YES')

Problem: p02779
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
def main():
  N=int(input())
  A=list(map(int, input().split()))
  A=sorted(A)
  a=A[0]
  for i in range(1,N):
    if a==A[i]:
      print('No')
      return
    else:
      a=A[i]
  print('Yes')
  return

main()

Failing test case input:
5
3 11 0 -1 2

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
def main():
  N=int(input())
  A=list(map(int, input().split()))
  A=sorted(A)
  a=A[0]
  for i in range(1,N):
    if a==A[i]:
      print('NO')
      return
    else:
      a=A[i]
  print('YES')
  return

main()

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
A = []

tmp = input().split()

for i in range(N):
  A.append(int(tmp[i]))
    
A.sort()

hantei = True

for i in range(N):
  tmp = i
  if i == tmp:
    hantei = False
    
if hantei == True:
  print("YES")
else:
  print("NO")

Failing test case input:
2
00001110 11010100

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
N = int(input())
A = []

tmp = input().split()

for i in range(N):
  A.append(int(tmp[i]))
    
A.sort()

hantei = True

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

Problem: p02779
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
s = list(map(int, input().split()))
st = set(s)

if len(st) == n:
 	print("Yes")
else:
	print("No")

Failing test case input:
6
4 1 1 2 2 0

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
n = int(input())
s = list(map(int, input().split()))

st = set(s)

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

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

def main():
    StringN = input();
    listA = input();
    newlistA = sorted(listA);

    for i in range(int(StringN)-1):
        if newlistA[i] == newlistA[i+1]:
            print('No');
            return 0;
    print('Yes');


main();


Failing test case input:
6
6 2 3 0 2 0

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):

def main():
    StringN = input();
    listA = input().split();
    listA.sort();



    for i in range(int(StringN)-1):


        if listA[i] == listA[i+1]:
            print('NO');

            return 0;
    print('YES');


main();
Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())
A=list(map(int, input().split()))

B=sorted(A)

answer="YES"
for i in range(N):
  if B[i]==B[i+1]:
    answer="NO"
  break
  
print(answer)

Failing test case input:
5
1 4 1 -1 0

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
N=int(input())
A=list(map(int, input().split()))
B=sorted(A)


answer="YES"
for i in range(N-1):
  if B[i]==B[i+1]:
    answer="NO"
    
print(answer)

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
P = list(map(int,input().split()))
def ans(a):
  return len(a) != len(set(a))
ans = ans(P)
if ans == 'True':
  print('NO')
else:
  print('YES')

Failing test case input:
5
2 4 1 3 2

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
N = int(input())
P = list(map(int,input().split()))
def has_duplicates(seq):
    return str(len(seq) != len(set(seq)))
if has_duplicates(P) == 'False':
  print('YES')
elif has_duplicates(P) == 'True':
  print('NO')

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
    N = int(input())
    A = list(map(int,input().split()))
    B = set(A)
    C = len(B)
    if N == len(set(A)):
        print("Yes")
    else:
        print("No")
    
    
    

main()

Failing test case input:
6
1 3 5 -1 4 1

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
def main():
    N = int(input())
    A = list(map(int,input().split()))
    
    
    if N == len(set(A)):
        print("YES")
    else:
        print("NO")
    
    
    

main()

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()
A = list(map(int, input().split()))

print('Yes' if N == len(set(A)) else 'No')

Failing test case input:
2
11000100 00001000

Expected output:
YES


Actual output:
No


Fixed submission (verdict: Accepted):
N = input()
A = list(map(int, input().split()))

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

Problem: p02779
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
c=sorted(list(map(int, input().split())))
ans = 0

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

if ans == 0:
    print('YES')
if ans != 0:
    print('N0')

Failing test case input:
5
1 6 2 -2 1

Expected output:
NO


Actual output:
N0


Fixed submission (verdict: Accepted):
n=int(input())
c=sorted(list(map(int, input().split())))
ans = 0

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

if ans == 0:
    print('YES')
if ans != 0:
    print('NO')
Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

def main():
    StringN = input();
    listA = input();
    newlistA = sorted(listA);

    for i in range(int(StringN)-1):
        if newlistA[i] == newlistA[i+1]:
            print('No');
            return 0;
        else:
            print('Yes');
            return 0;


main();

Failing test case input:
5
2 9 1 4 5

Expected output:
YES


Actual output:
No


Fixed submission (verdict: Accepted):

def main():
    StringN = input();
    listA = input().split();
    listA.sort();



    for i in range(int(StringN)-1):


        if listA[i] == listA[i+1]:
            print('NO');

            return 0;
    print('YES');


main();

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def has_no_duplicates(seq):
  return len(seq) == len(set(seq))

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

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

Failing test case input:
5
7 11 -1 -1 3

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
def has_no_duplicates(seq):
  return len(seq) == len(set(seq))

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

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

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
input = sys.stdin.readline

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

if len(set(a)) == n:
    print('Yes')
else:
    print('No')

Failing test case input:
5
2 4 1 3 2

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
import sys
input = sys.stdin.readline

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

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

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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')

Failing test case input:
5
2 9 0 3 5

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
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')

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):



def solve(*args: str) -> str:
    n = int(args[0])
    A = list(map(int, args[1].split()))
    A.sort()
    p = A[0]
    for a in A[1:]:
        if a == p:
            return 'NO'

    return 'YES'


if __name__ == "__main__":
    print(solve(*(open(0).read().splitlines())))


Failing test case input:
6
6 5 2 2 1 -1

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):



def solve(*args: str) -> str:
    n = int(args[0])
    A = list(map(int, args[1].split()))

    A.sort()
    p = A[0]
    for a in A[1:]:
        if a == p:
            return 'NO'
        p = a

    return 'YES'


if __name__ == "__main__":
    print(solve(*(open(0).read().splitlines())))
Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from collections import Counter


n = int(input())
ai = list(map(int, input().split()))
c = max(Counter(ai).values())


if c > 1:
    print('No')
else:
    print('Yes')


Failing test case input:
5
1 4 1 1 2

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
from collections import Counter


n = int(input())
ai = list(map(int, input().split()))
c = max(Counter(ai).values())


if c > 1:
    print('NO')
else:
    print('YES')

Problem: p02779
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
l = list(map(int,input().split()))
d = {}
for i in l:
    if i in d:
        d[i] += 1
    if i not in d:
        d[i] = 1
length = len(d)
if length ==n:
    print("YES")
else:
    print("NO")
print(d)

Failing test case input:
2
00001010 11010100

Expected output:
YES


Actual output:
YES
{1010: 1, 11010100: 1}


Fixed submission (verdict: Accepted):
n = int(input())
l = list(map(int,input().split()))
d = {}
for i in l:
    if i in d:
        d[i] += 1
    if i not in d:
        d[i] = 1
length = len(d)
if length ==n:
    print("YES")
else:
    print("NO")

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l1 = input().split()
l2 = set(l1)
if len(l1) == len(l2):
  print("YES")
else:
  print("NO")

Failing test case input:
5
3 9 0 0 2

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
l1 = input()
l1 = input().split()
l2 = set(l1)
if len(l1) == len(l2):
  print("YES")
else:
  print("NO")

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
a = list(map(int, input().split()))
if len(set(a)) == len(a):
    print('Yes')
else:
    print('No')


Failing test case input:
5
1 4 2 -2 0

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
n = int(input())
a = set(map(int, input().split()))
if len(a) == n:
    print('YES')
else:
    print('NO')

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
a = list(map(int, input().split()))

a.sort()

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

if(flag == 1):
    print("No")
else:
    print("Yes")


Failing test case input:
2
10000100 10000000

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
n = int(input())
a = list(map(int, input().split()))

a.sort()

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

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

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
a = list(map(int,input().split()))
a.sort()
s = list(set(a))
if a == s:
    print('YES')
else:
    print('NO')

Failing test case input:
2
00001111 01010000

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
n = int(input())
a = list(map(int,input().split()))
a.sort()
s = list(set(a))
s.sort()
if a == s:
    print('YES')
else:
    print('NO')
Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=list(input().split())
c=sorted(b)
for i in range (a-1):
 if c[i]==c[i+1]:
  print("NO")
  break
 else:
  print("YES")
  break



Failing test case input:
6
1 2 5 -1 4 1

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a=int(input())
b=list(input().split())
c=sorted(b)
ans=0
for i in range (a-1):
 if c[i]==c[i+1]:
  ans=1
  break
if ans==0:
	print("YES")
else:print("NO")

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()
A = list(map(int, input().split()))

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


Failing test case input:
2
00001111 01010000

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
N = int(input())
A = list(map(int, input().split()))

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

Problem: p02779
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
L=list(map(int,input().split()))
L=sorted(L)
v=0
for i in range(len(L)-1):
    if L[i+1]-L[i]==0:
        v=1
if v==1:
    print("NO")
else:
    print("YES")


    

Failing test case input:
5
1 4 1 3 2

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
N=int(input())
L=list(map(int,input().split()))
L=sorted(L)
v=0
for i in range(len(L)-1):
    if L[i+1]-L[i]==0:
        v=1
if v==1:
    print("NO")
else:
    print("YES")

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
a=list(map(int,input().split()))
if len(a)==len(set(a)):
  print('Yes')
else:
  print('No')
  

Failing test case input:
2
11000100 00001000

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
n=int(input())
a=list(map(int,input().split()))
A=set(a)
if len(a)==len(A):
  print('YES')
else:
  print('NO')

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import collections
N = int(input())
A = list(map(int , input().split()))
c = collections.Counter(A)
if len(c) == N:
    print('Yes')
else:
    print('No')

Failing test case input:
6
6 2 2 0 1 0

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
import collections
N = int(input())
A = list(map(int , input().split()))
c = collections.Counter(A)
if len(c) == N:
    print('YES')
else:
    print('NO')

Problem: p02779
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
a = sorted([int(i) for i in input().split()])
ans = 'Yes'
for i in range(1, n):
  if a[i-1] == a[i]:
    ans = 'No'
    break
print(ans)

Failing test case input:
5
1 6 2 -2 1

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
n = int(input())
a = sorted([int(i) for i in input().split()])
ans = 'YES'
for i in range(1, n):
  if a[i-1] == a[i]:
    ans = 'NO'
    break
print(ans)
Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())
ls=[int(s) for s in input().split()]
s=set(ls)
if len(s)==N:
  print('Yes')
else:
  print('No')

Failing test case input:
5
1 4 1 1 2

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
N=int(input())
ls=[int(s) for s in input().split()]
s=set(ls)
if len(s)==N:
  print('YES')
else:
  print('NO')

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import heapq

N = int(input())
A = list(map(int, input().split()))
res = "YES"
heapq.heapify(A)
for i in range(len(A)):
    if i == 0:
        continue
    if A[i] == A[i-1]:
        res = "NO"
        break
    else:
        continue
print(res)


Failing test case input:
6
4 1 3 1 2 0

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
N = int(input())
A = list(map(int, input().split()))
res = "YES"
A.sort()
for i in range(len(A)):
    if i == 0:
        continue
    if A[i-1] == A[i]:
        res = "NO"
        break
    else:
        continue
print(res)

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from sys import stdin


def get_result(data):
    N, A = data[0], data[1]
    return 'Yes' if len(list(set(A))) == len(A) else 'NO'

if __name__ == '__main__':
    raw_data = [val.rstrip('\n') for val in stdin.readlines()]
    data = [list(map(int, val.split(' '))) for val in raw_data]
    result = get_result(data)
    print(result)


Failing test case input:
2
00000001 01010000

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
from sys import stdin


def get_result(data):
    N, A = data[0], data[1]
    return 'YES' if len(set(A)) == N[0] else 'NO'

if __name__ == '__main__':
    raw_data = [val.rstrip('\n') for val in stdin.readlines()]
    data = [list(map(int, val.split(' '))) for val in raw_data]
    result = get_result(data)
    print(result)

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
flag = True
n = int(input())

a = input().split()

a.sort()

start = 0
for i in a:
    start += 1
    for j in a[start-1:start+1]:
        if i == j:
            flag = False
            break
            
if flag:
    print('YES')
else:
    print('NO')
        

Failing test case input:
2
11000100 10101001

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
flag = True
n = int(input())

a = input().split()

a.sort()
start = 0
for i in a:
    for j in a[start-1:start+1:2]:
        if i == j:
            flag = False
            break
    start += 1
    
if flag:
    print('YES')
else:
    print('NO')

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
a = list(map(int,input().split()))
b = set(a)
if n == len(b):
  print("YES")
else:
  print("No")

Failing test case input:
6
6 2 2 2 2 0

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
n = int(input())
a = list(map(int,input().split()))
b = set(a)
if n == len(b):
  print("YES")
else:
  print("NO")
Problem: p02779
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
import sys
input = sys.stdin.readline

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

Failing test case input:
2
11000101 00101000

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
import sys
input = sys.stdin.readline

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

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
A = list(map(int,input().split()))
a = set(A)
if len(a) == N:
  print('Yes')
else:
  print('No')


Failing test case input:
6
4 1 3 1 6 2

Expected output:
NO

Actual output:
No


Fixed submission (verdict: Accepted):
N = int(input())
A = list(map(int,input().split()))
a = set(A)
if len(a) == N:
  print('YES')
else:
  print('NO')

Problem: p02779
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N = int(input())
A_list = list(map(int, input().split()))

if len(A_list) == len(set(A_list)):
  print("Yes")
else:
  print("No")

Failing test case input:
6
6 2 2 0 2 0

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
N = int(input())
A_list = list(map(int, input().split()))

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

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
a = list(input().split())
a = set(a)
if n == len(a):
    print("Yes")
else:
    print("No")

Failing test case input:
5
2 9 1 4 5

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
n = int(input())
a = list(input().split())
a = set(a)
if n == len(a):
    print("YES")
else:
    print("NO")

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())
A=list(map(int, input().split()))

A=sorted(A)

for i in range(0,int(N/2),2):
  if len(A) >= i+1:
    if A[i] == A[i+1]:
      print("NO")
      exit(0)
print("YES")

Failing test case input:
6
1 3 5 -2 4 1

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
N=int(input())
A=list(map(int, input().split()))

A=sorted(A)

for i in range(0,N):
  if len(A) > i+1:
    if A[i] == A[i+1]:
      print("NO")
      exit(0)
print("YES")

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()
list_1 = list(map(int,input().split()))

num = len(list_1)
num_2 = len(set(list_1))

if num == num_2:
    print('Yes')
else:
    print('No')

Failing test case input:
2
00011101 01010000

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
N = int(input())
list_1 = list(map(int,input().split()))


num_2 = len(set(list_1))

if N == num_2:
    print('YES')
else:
    print('NO')
Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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")

Failing test case input:
2
00010101 01010000

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
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")

Problem: p02779
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
a = list(map(int, input().split()))
for i in a:
    if a.count(i) >= 2:
        print("NO")
        
print("YES")


Failing test case input:
6
6 4 2 2 1 -1

Expected output:
NO


Actual output:
NO
NO
YES


Fixed submission (verdict: Accepted):
n = int(input())
a = list(map(int, input().split()))
b = set(a)
a.sort()
if len(a) != len(b):
    print("NO")
else:
    print("YES")

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
a = list(map(int,input().split()))

c = [0]*n
flag = 0
c[0] = a[0]
for i in range(n):
  for j in range(i):
    if c[j] == a[i]:
      flag = 1
      break
    else:
      c[i] = a[i]

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

Failing test case input:
6
4 1 3 1 2 1

Expected output:
NO


Actual output:
[4, 1, 3, 1, 2, 1]
NO


Fixed submission (verdict: Accepted):
n = int(input())
a = list(map(int,input().split()))

a.sort()
flag = 0

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

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())
A=list(map(int,input().split()))
ans="Yes"
for i in range(N-1):
    if A[i] in A[i+1:N]:
        ans="No"
print(ans)

Failing test case input:
6
6 1 1 0 2 0

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
N=int(input())
A=list(map(int,input().split()))
ans="YES"
A.sort()
for i in range(N-1):
    if A[i]==A[i+1]:
        ans="NO"
        break
print(ans)

Problem: p02779
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

def main():
    StringN = input();
    listA = input().split();
    listA.sort();



    for i in range(int(StringN)-1):


        if listA[i] == listA[i+1]:
            print('No');

            return 0;
    print('Yes');


main();


Failing test case input:
5
2 6 2 -2 1

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):

def main():
    StringN = input();
    listA = input().split();
    listA.sort();



    for i in range(int(StringN)-1):


        if listA[i] == listA[i+1]:
            print('NO');

            return 0;
    print('YES');


main();