Problem C
Search Wizard
You adore word searches, and have been doing them since you
were little. You do them so much, you started just picking out
words whenever you see a string of text! With a target string
Note that instances of
Input
The first line consists of a string
Output
Return an integer of the number of times
Sample Input 1 | Sample Output 1 |
---|---|
buzz 8 bee buzz bee buzz bee buzz bee buz |
3 |
Sample Input 2 | Sample Output 2 |
---|---|
aaa 5 aaaaaaaa aa a aaaa aaa |
9 |
Sample Input 3 | Sample Output 3 |
---|---|
aba 3 aba ababa abba |
3 |