#C14163. Unique Descending Order

    ID: 43782 Type: Default 1000ms 256MiB

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.

## sample
4
1 1 1 1
1

</p>