The Captain's Room

  • + 0 comments

    a = int(input())

    set_a = list(map(int, input().split()))

    seen_once = set()

    seen_multiple = set()

    for i in set_a: if i in seen_once: seen_multiple.add(i) else: seen_once.add(i) unique_elements = seen_once - seen_multiple for element in unique_elements: print(element)