Problem1687--找子串

1687: 找子串

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

给你两个字符串 h 和 s ,请你在 h 字符串中找出 s 字符串的第一个匹配项的下标(下标从 0 开始)。如果 s 不是 h 的一部分,则返回  -1 。

Input

输入两个字符串h,s


Output

输出一个整数

Sample Input Copy

sadbutsad
sad

Sample Output Copy

0

Source/Category

 字符串