You are viewing a single comment's thread. Return to all comments →
size_group=int(input()) room_list=list(map(int,input().split()))
dict_room={i:room_list.count(i) for i in room_list}
for i in dict_room.items() : if i[1]==1: print(i[0])
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_group=int(input()) room_list=list(map(int,input().split()))
dict_room={i:room_list.count(i) for i in room_list}
for i in dict_room.items() : if i[1]==1: print(i[0])