摘要:
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 al... 阅读全文
摘要:
Description Ignatius最近遇到一个难题,老师交给他很多单词(只有小写字母组成,不会有重复的单词出现),现在老师要他统计出以某个字符串为前缀的单词数量(单词本身也是自己的前缀). Input 输入数据的第一部分是一张单词表,每行一个单词,单词的长度不超过... 阅读全文
摘要:
Description Ignatius is so lucky that he met a Martian yesterday. But he didn't know the language the Martians use. The Martian gives him a hist... 阅读全文
摘要:
Description Given a list of phone numbers, determine if it is consistent in the sense that no number is the prefix of another. Let’s say the pho... 阅读全文