Buggy python submission (verdict: Time Limit Exceeded):
def main():
	n=int(input())
	a=list(map(int, input().split()))
	count = 0
	for i in range(n):
		if  a.count(a[i])> 1:
			count+=1
			print('NO')
			break
	if count==0:
		print('YES')
main()

Fixed submission:
def main():
	n=int(input())
	a=list(map(int, input().split()))
	a.sort()
	c=0
	for i in range(n-1):
		if a[i] == a[i+1]:
			print('NO')
			c+=1
			break
	if c==0:
		print('YES')
main()

Buggy python submission (verdict: Time Limit Exceeded):
def main():
	n=int(input())
	a=list(map(int, input().split()))
	count = 0
	while count==0:
		for i in range(n):
			if  a.count(a[i])> 1:
				count+=1
				print('NO')
				break
	if count==0:
		print('YES')
main()

Fixed submission:
def main():
	n=int(input())
	a=list(map(int, input().split()))
	a.sort()
	c=0
	for i in range(n-1):
		if a[i] == a[i+1]:
			print('NO')
			c+=1
			break
	if c==0:
		print('YES')
main()

Buggy python submission (verdict: Time Limit Exceeded):
def main():
	n=int(input())
	a=list(map(int, input().split()))
	count = 0
	while count==0:
		for i in range(n):
			if  a.count(a[i])> 1:
				count+=1
				print('NO')
				break
			else:
				continue
	if count==0:
		print('YES')
main()

Fixed submission:
def main():
	n=int(input())
	a=list(map(int, input().split()))
	a.sort()
	c=0
	for i in range(n-1):
		if a[i] == a[i+1]:
			print('NO')
			c+=1
			break
	if c==0:
		print('YES')
main()

Buggy python submission (verdict: Time Limit Exceeded):
def main():
	n=int(input())
	a=list(map(int, input().split()))
	count = 0
	while count==0:
		for i in range(n):
			if  a.count(a[i])> 1:
				count+=1
				break
			else:
				continue
	if count==0:
		print('YES')
	else:
		print('NO')
main()

Fixed submission:
def main():
	n=int(input())
	a=list(map(int, input().split()))
	a.sort()
	c=0
	for i in range(n-1):
		if a[i] == a[i+1]:
			print('NO')
			c+=1
			break
	if c==0:
		print('YES')
main()

Buggy python submission (verdict: Time Limit Exceeded):
def main():
	n=int(input())
	a=list(map(int, input().split()))
	count=[0]*n
	while sum(count)==0:
		for i in range(n):
			count[i] = a.count(a[i])-1
	if sum(count)==0:
		print('YES')
	else:
		print('NO')
main()

Fixed submission:
def main():
	n=int(input())
	a=list(map(int, input().split()))
	a.sort()
	c=0
	for i in range(n-1):
		if a[i] == a[i+1]:
			print('NO')
			c+=1
			break
	if c==0:
		print('YES')
main()

Buggy python submission (verdict: Time Limit Exceeded):
def main():
	n=int(input())
	a=list(map(int, input().split()))
	count=0
	for i in range(n):
		if a.count(a[i])>1:
			print('NO')
			break
	else:
		print('YES')
main()

Fixed submission:
def main():
	n=int(input())
	a=list(map(int, input().split()))
	a.sort()
	c=0
	for i in range(n-1):
		if a[i] == a[i+1]:
			print('NO')
			c+=1
			break
	if c==0:
		print('YES')
main()

Buggy python submission (verdict: Time Limit Exceeded):
def main():
	n=int(input())
	a=list(map(int, input().split()))
	count=[1]*n
	while sum(count)==n:
		for i in range(n):
			count[i] = a.count(a[i])
	if sum(count)==n:
		print('YES')
	else:
		print('NO')
main()

Fixed submission:
def main():
	n=int(input())
	a=list(map(int, input().split()))
	a.sort()
	c=0
	for i in range(n-1):
		if a[i] == a[i+1]:
			print('NO')
			c+=1
			break
	if c==0:
		print('YES')
main()

Buggy python submission (verdict: Time Limit Exceeded):
def main():
	n=int(input())
	a=list(map(int, input().split()))
	count=[0]*n
	for i in range(n):
		count[i] = a.count(a[i])
	if sum(count)==n:
		print('YES')
	else:
		print('NO')
main()

Fixed submission:
def main():
	n=int(input())
	a=list(map(int, input().split()))
	a.sort()
	c=0
	for i in range(n-1):
		if a[i] == a[i+1]:
			print('NO')
			c+=1
			break
	if c==0:
		print('YES')
main()

Buggy python submission (verdict: Time Limit Exceeded):
def main():
	n=int(input())
	a=list(map(int, input().split()))
	count = 0
	for i in range(n):
		for j in range(n):
			if i == j:
				count =count
			elif a[i]==a[j] :
				count+=1
				break
			else:
				count=count
	if count==0:
		print('YES')
	else:
		print('NO')
main()

Fixed submission:
def main():
	n=int(input())
	a=list(map(int, input().split()))
	a.sort()
	c=0
	for i in range(n-1):
		if a[i] == a[i+1]:
			print('NO')
			c+=1
			break
	if c==0:
		print('YES')
main()

Buggy python submission (verdict: Time Limit Exceeded):
def main():
	n=int(input())
	a=list(map(int, input().split()))
	count = 0
	for i in range(n):
		for j in range(n):
			if i == j:
				count =count
			elif a[i]==a[j] :
				count+=1
			else:
				count=count
	if count==0:
		print('YES')
	else:
		print('NO')
main()

Fixed submission:
def main():
	n=int(input())
	a=list(map(int, input().split()))
	a.sort()
	c=0
	for i in range(n-1):
		if a[i] == a[i+1]:
			print('NO')
			c+=1
			break
	if c==0:
		print('YES')
main()