#2755. SOS
SOS
题目描述
输入一个字符串 s,查找字符串 s 中是否含有子串 "sos",如果有则输出第一个对应的下标,否则输出 "no"。
输入格式
输入一个字符串 s
输出格式
按要求输出
输入样例
输入1
nopsostring
输出1
3
输入2
nopsotsring
输出2
no
输入一个字符串 s,查找字符串 s 中是否含有子串 "sos",如果有则输出第一个对应的下标,否则输出 "no"。
输入一个字符串 s
按要求输出
nopsostring
3
nopsotsring
no
By signing up a 战码少年-战码青少年编程(专业信息学奥赛编程训练) universal account, you can submit code and join discussions in all online judging services provided by us.