1237: 【10】捉迷藏▁find

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:40 Solved:26

Description

麦豆在玩捉迷藏,他可能藏在了一个字符串里面,你能找一下他吗?

Input

输入一行字符串,只包含英文字符和空格,里面可能包含了子串Mai。

Output

如果字符串里包含子串Mai,则输出他首次出现的位置,否则输出-1。

Sample Input Copy

Lucy and Mai are playing hide and seek

Sample Output Copy

9

HINT

找不到返回-1.说明只能用find() 不能用index()
find()找不到返回-1。
index()找不到报错。