You are viewing a single comment's thread. Return to all comments →
K = int(input()) rooms = list(map(int,input().split()))
Group = {} for i in rooms: Group[i] = Group.get(i,0) +1
for key, value in Group.items(): if value == 1: print(key)
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 →
K = int(input()) rooms = list(map(int,input().split()))
Group = {} for i in rooms: Group[i] = Group.get(i,0) +1
for key, value in Group.items(): if value == 1: print(key)