You are viewing a single comment's thread. Return to all comments →
size=int(input()) Room_Number=list(map(int,input().split()))
captain = (sum(set(Room_Number)) * size - sum(Room_Number)) // (size - 1) print(captain)
​
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 →
size=int(input()) Room_Number=list(map(int,input().split()))
captain = (sum(set(Room_Number)) * size - sum(Room_Number)) // (size - 1) print(captain)