Count bob golf


Statement
You are given S contains only 'b', 'o'.
Let n be the number of occurrences of "bob" in S as a substring.
Replace S with n 'o's.

Constraint
* 1 ≤ |S| ≤ 15
Sample Input
Sample Output
Contest ID
0003
Writer
admin
Publish date
2020/05/14 22:10:00
Solved
458
Best
5
Top player
wisteria0410ss