You are viewing a single comment's thread. Return to all comments →
member = int(input()) lst = list(map(int, input().split())) dct = dict()
for i in lst: if i in dct: dct[i] += 1 else: dct[i] = 1
for key, value in dct.items(): if value == 1: print(key) 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 →
member = int(input()) lst = list(map(int, input().split())) dct = dict()
for i in lst: if i in dct: dct[i] += 1 else: dct[i] = 1
for key, value in dct.items(): if value == 1: print(key) break;