Without repetition
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
From the provided array of integers, remove all duplicate elements. Specifically, for any repeated elements, retain only the one that appears first.
Input
The first line contains the integer N, representing the number of elements in the array. The second line contains N integers, each with an absolute value not exceeding 100.
Output
Print the array elements without duplicates, maintaining their original order, with each element separated by a space.
Examples
Input #1
Answer #1
Submissions 5K
Acceptance rate 59%