练习专区

今天的一小步就是明天的一大步
Problem 1093 最长单词
Accepted: 3   Total Submit: 25
Time Limit: 1000ms   Memory Limit: 30720KB
Description
每一行是一个英文的句子。请你找出长度最长的单词,如果长度相同的,则按序输出。
Input
输入有若干行,每行一句。
Output
每句中的最长单词,长度相同的单词,按字典序输出,中间用空格隔开。
Sample Input
How to Be a Successful Person ?
As the saying goes, nothing succeeds like success.
People like to deal with a successful person.
When given a chance, people would deal with the best.
Sample Output
Successful
succeeds
successful
chance people 
Hint
提交     返回