1078: 统计单词个数
Memory Limit:128 MB
Time Limit:0.000 S
Judge Style:Text Compare
Creator:
Submit:15
Solved:1
Description
统计一个英文句子中出现了多少个英文单词,相同单词只算一个,并按照字典序输出所有单词。单词间用至少一个空格隔开(可以有多个空格),句子头部可以有多个空格,句子长度不超过255且句子中没有标点符号。
Input
一行,一个长度不大于255的字符串。
Output
第一行,单词个数N;接下来有N行,每行一个单词,且按字典序先后出现。
Sample Input Copy
time is money money not time
Sample Output Copy
4
is
money
not
time