P10621 [HackerEarth] monks birthday party
普及
题目描述

Monk's birthday is coming this weekend! He wants to plan a Birthday party and is preparing an invite list with his friend Puchi. He asks Puchi to tell him names to add to the list.
Puchi is a random guy and keeps coming up with names of people randomly to add to the invite list, even if the name is already on the list! Monk hates redundancy and hence, enlists the names only once.
Find the final invite-list, that contain names without any repetition.

Input:
First line contains an integer T. T test cases follow.
First line of each test contains an integer N, the number of names that Puchi pops up with.

Output:
For each testcase,Output the final invite-list with each name in a new line. The names in the final invite-list are sorted lexicographically.

Constraints:
1 ≤ T ≤ 10
1 ≤ N ≤ 10^5
1 ≤ Length of each name ≤ 10^5

SAMPLE INPUT
1
7
chandu
paro
rahul
mohi
paro
arindam
rahul

SAMPLE OUTPUT
arindam
chandu
mohi
paro
rahul

输入格式

见题面

输出格式

见题面

样例输入
1 7 chandu paro rahul mohi paro arindam rahul SAMPLE
样例输出
arindam chandu mohi paro rahul