summaryrefslogtreecommitdiff
path: root/progs/a176.py
blob: 52c13ad3a7973b1cc650430e849739aa171cdc2c (plain)
1
2
3
4
5
6
7
def find_Sum(arr,n): 
    arr.sort() 
    sum = arr[0] 
    for i in range(0,n-1): 
        if (arr[i] != arr[i+1]): 
            sum = sum + arr[i+1]   
    return sum