#C30201. 讲解:子字符串下标查找
讲解:子字符串下标查找
Background背景
请求出父字符串s中首次出现子字符串s1的下标,如果s1在s中不存在,请输出no ;
Input输入
一个字符串
Output输出
子字符串的位置。注意:不是下标。
Samples样例
hello world
or
8
hello boy
go
no
Limitation限制
1s, 1024KiB for each test case.
请求出父字符串s中首次出现子字符串s1的下标,如果s1在s中不存在,请输出no ;
一个字符串
子字符串的位置。注意:不是下标。
hello world
or
8
hello boy
go
no
1s, 1024KiB for each test case.
By signing up a 霖家编程 universal account, you can submit code and join discussions in all online judging services provided by us.