#C6587. Unique Sorted Strings
Unique Sorted Strings
Unique Sorted Strings
Given a list of strings, your task is to output the unique strings in alphabetical order. The input is provided via standard input (stdin) and the output must be printed to standard output (stdout).
Input Format:
On the first line, an integer (n) indicates the number of strings. The following (n) lines each contain a string (which may be empty).
Output Format:
Print the unique strings in alphabetical order, each on a new line.
inputFormat
The first line contains an integer (n) — the number of strings. Each of the next (n) lines contains a string.
outputFormat
Output the unique strings sorted in alphabetical order, with each string printed on a new line.## sample
6
apple
banana
apple
orange
banana
grape
apple
banana
grape
orange
</p>