# Count distinct elements in an array import sysarr=[]freq=[]max=-sys.maxsize-1size = int(input("Enter the size of the array: "))print("Enter the Element of the array:")for i in range(0,size):    num = int(input())    arr.append(num)for i in range(0, size):    if(arr[i]>=max):        max=arr[i]for i in range(0,max+1):    freq.append(0)for i in range(0, size):    freq[arr[i]]+=1count=0for i in range(0, max+1):    if freq[i] == 1:        count+=1print("Numbers of distinct elements are ",count)