You are viewing a single comment's thread. Return to all comments →
Using dictionary
K = int(input()) L = map(int, input().split(' ')) D = dict() for x in L: if D.get(x) == None: D[x] = 1 else: D[x] += 1 for x in D: if D[x] == 1: print(x)
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 →
Using dictionary