You are viewing a single comment's thread. Return to all comments →
not sure what is trrying to be taught about sets here... with counter or dict/hashmap it's simple:
lines = sys.stdin.read().splitlines() k = lines[0] rm_number_counts = {} for i in lines[1].split(' '): if i not in rm_number_counts: rm_number_counts[i] = 1 else: rm_number_counts[i] += 1 for k, v in rm_number_counts.items(): # print(k , v) if v == 1: print(k)
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 →
not sure what is trrying to be taught about sets here... with counter or dict/hashmap it's simple: