3
给定英文句子S和字符串x,判断x是否为S中某些单词的前缀,若匹配到则输出第1个匹配单词的位置,否则输出-1。
例如:输入"this is an easy problem."和"eas",输出4
例如:输入"In love folly is always sweet"和"like",输出-1
例如:输入"Whatever is worth doing is worth doing well."和"wor",输出3