#T158. 单词排序
单词排序
Description
Enter a sequence of words separated by one or more spaces. Output these words in dictionary order, ensuring that duplicate words are only output once. (Case-sensitive)
Input Format
A sequence of words on one line, containing at least 1 word and at most 100 words. Each word has a maximum length of 50 characters, and words are separated by at least one space.
The input contains no characters other than letters and spaces.
Output Format
Output the words in dictionary order, with duplicate words appearing only once.
She wants to go to Peking University to study Chinese
Chinese
Peking
She
University
go
study
to
wants