#C14163. Unique Descending Order
Unique Descending Order
Unique Descending Order
Given an array of integers, your task is to generate a new array that contains only the unique elements from the input. These elements must be arranged in descending order. This problem tests your ability to handle arrays, remove duplicates, and sort values. The sorting criterion is defined by the condition \(a > b\) which ensures a descending order.
inputFormat
The input starts with an integer \(n\) representing the number of elements in the array. If \(n > 0\), the next line contains \(n\) space-separated integers.
outputFormat
Output the unique elements from the array sorted in descending order on a single line, separated by a single space. If the array is empty, output nothing.
## sample4
1 1 1 1
1
</p>