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