You are viewing a single comment's thread. Return to all comments →
n = int(input()) arr = list(map(int,input().split()))
unique_n = set(arr)
l1 = (n*(sum(unique_n)) - sum(arr))//(n-1)
print(l1)
Seems like cookies are disabled on this browser, please enable them to open this website
The Captain's Room
You are viewing a single comment's thread. Return to all comments →
n = int(input())
arr = list(map(int,input().split()))
unique_n = set(arr)
l1 = (n*(sum(unique_n)) - sum(arr))//(n-1)
print(l1)