Python3 代码
def getUniqueCount(nums, size):
count = 0
for i in range (size):
dup = False;
for j in range (i):
if nums[i] == nums[j]:
dup = True;
break;
if dup == False:
count += 1;
return count
size = int(input())
nums = [0]*size
nums = list(map(int, input().split()))
print (getUniqueCount(nums, size))