Description A hat’s word is a word in the dictionary that is the concatenation of exactly two other words in the dictionary. You are to find all the hat’s words in a dictionary. Input Standard input consists of a number of lowercase words, one per line, in alphabetical order. There will be no more than 50,000 words. Only one case. Output Your output should contain all the hat’s words, one per line, in alphabetical order. Sample Input a ahat hat hatword hziee word Sample Output ahat hatword /*Author: 2486Memory: 9096 KB Time: 31 MSLanguage: G++ Result: Accepted*///这道题目思路非常easy//就是找两个单词组成还有一个单词就可#include |