You are viewing a single comment's thread. Return to all comments →
Solution with only implement set concept
k = int(input()) rooms = list(map(int, input().split())) unique_room = sum(set(rooms)) total_rooms = sum(rooms) print((k*unique_room-total_rooms)//(k-1))
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 →
Solution with only implement set concept