You are viewing a single comment's thread. Return to all comments →
group_size = int(input()) rooms = list(map(int, input().split())) d = {} for i in rooms: if i not in d: d[i] = 1 else: d[i] += 1 for k,v in d.items(): if v == 1: print(k) break
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 →