整数去重
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
Description
给定含有n个整数的序列,要求对这个序列进行去重操作。所谓去重,是指对这个序列中每个重复出现的数,只保留该数第一次出现的位置,删除其余位置。
Input Format
输入包含两行:
第一行包含一个正整数n(1 ≤ n ≤ 20000),表示第二行序列中数字的个数;
第二行包含n个整数,整数之间以一个空格分开。每个整数大于等于10、小于等于5000。
Output Format
输出只有一行,按照输入的顺序输出其中不重复的数字,整数之间用一个空格分开。
5
10 12 93 12 75
10 12 93 75
2025ACM暑假练习题
- Status
- Done
- Rule
- XCPC
- Problem
- 7
- Start at
- 2025-7-1 14:00
- End at
- 2025-7-1 17:00
- Duration
- 3 hour(s)
- Host
- Partic.
- 28