You are viewing a single comment's thread. Return to all comments →
from collections import Counter
memberOfFamilyK = input() roomNumbers = list(map(int,input().split())) anotherSet = set(roomNumbers) count = Counter(roomNumbers) for c,i in count.items(): if i != int(memberOfFamilyK): print(c)
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 →
from collections import Counter
memberOfFamilyK = input() roomNumbers = list(map(int,input().split())) anotherSet = set(roomNumbers) count = Counter(roomNumbers) for c,i in count.items(): if i != int(memberOfFamilyK): print(c)