#T740. 整数去重

整数去重

Description

Given a sequence of nn integers, the task is to perform a deduplication operation on this sequence. Deduplication means that for each repeated number in the sequence, only the position where the number first appears is retained, and all subsequent occurrences are deleted.

Input Format

The input consists of two lines:

The first line contains a positive integer nn (1 ≤ nn ≤ 20000), indicating the number of integers in the sequence on the second line;

The second line contains nn integers separated by a single space. Each integer is greater than or equal to 10 and less than or equal to 5000.

Output Format

The output consists of only one line, containing 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

翻译结果

CodesOnline

(注:由于"CodesOnline"本身是一个专有名词或品牌名称,通常不需要翻译,直接保留原英文形式即可。如果必须翻译,可意译为"在线代码"或"代码在线",但建议保留原名以维持品牌识别度。)