문제1471--Delete duplicate numbers

1471: Delete duplicate numbers

실행시간 제한: 1 Sec  메모리사용 제한: 128 MB
제출: 2  통과: 2
[제출] [채점기록] [묻고답하기] [만든사람:]

문제 설명

Given a sequence of N numbers, write a program that sorts the sequence by removing duplicate numbers and outputting the results.

입력 설명

First, the number of test cases T (1 <= T <= 100) is input.
Then, the number of numbers N and N numbers M[i] are input as the number of test cases. (1 <= N <= 50, 1 <= M[i] <= 1,000)

출력 설명

For each test case, output the result of the sequence sorted in ascending order, removing duplicate numbers.

입력 예시 Copy

3
5
1 1 2 3 3
7
1 5 9 2 4 5 9
10
29 80 80 91 92 96 80 29 38 3

출력 예시 Copy

1 2 3
1 2 4 5 9
3 29 38 80 91 92 96

출처/분류