Processing math: 100%
Unique 2 - MarisaOJ: Marisa Online Judge

Unique 2

Time limit: 1000 ms
Memory limit: 256 MB
You are given an integer array A of length n. Remove all duplicate elements in A and print it in ascending order. ### Input - The first line contains an integers n. - The second line contains n integers Ai. ### Output - A in ascending order after removing duplicate elements. ### Constraints - 1≤n≤1000. - |Ai|≤1000. ### Example Input: 5-39-594 Output: -5-349