#include "stdio.h"
#include "string.h"
int main()
{
int n,sum,i;
char str[105];
while(scanf("%s",&str)!=EOF)
{
n=strlen(str);
sum=0;
for(i=0;i<n;i++)
{
if(str[i]=='T'&&str[i+1]=='w'&&str[i+2]=='o'&&str[i+3]=='B'&&str[i+4]=='e'&&str[i+5]=='e')
sum++;
}
printf("%d\n",sum);
}
}
Find TwoBee 寻找小蜜蜂
最新推荐文章于 2023-03-23 12:43:35 发布