#934. 【入门】字符串出现次数
【入门】字符串出现次数
说明
一个字符串中任意个连续的字符组成的子序列为该字符串的子串。给定子串s1和它的一个字符串s2,求s1在s2中出现的次数。输入格式
第一行,表示字符串s1, 第二行,表示字符串s2输出格式
一个整数,代表s1在s2中出现的次数。ab
abbaabcaabc
3
ab
abbaabcaabc
3
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.