#T537. 整数去重
整数去重
Description
Given a sequence of integers, the task is to perform a deduplication operation on this sequence. Deduplication means that for each repeated number in the sequence, only the first occurrence of the number is retained, and all subsequent occurrences are deleted.
Input Format
The input consists of two lines:
The first line contains a positive integer (1 ≤ ≤ 20000), indicating the number of integers in the sequence on the second line;
The second line contains integers separated by a single space. Each integer is between 10 and 5000, inclusive.
Output Format
The output consists of a single line. It should contain the non-repeating numbers in the order they first appeared in the input, separated by a single space.
5
10 12 93 12 75
10 12 93 75
## Source
CodesOnline