Without repetition 2
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
From the provided array of integers, remove all duplicate elements, ensuring that only the element with the highest index is retained.
Input Data
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 Data
Print the array elements without duplicates in a single line, maintaining their original order, and separate them with spaces.
Examples
Input #1
Answer #1
Submissions 2K
Acceptance rate 53%