#include<cstdio>
#include<cstring>
using namespace std;
int n;
char s[100001],table[]="luvletter";
int main()
{
	scanf("%d",&n); getchar();
	for(;n;--n)
	  {
	  	gets(s);
	  	int m=strlen(s),ans=0,p=0;
	  	for(int i=0;i<m;++i)
	  	  if(s[i]==table[p])
			{
			  if(p==8) ++ans;
			  p=(p+1)%9;
			}
		printf("%d\n",ans);
	  }
	return 0;
}

相关文章:

  • 2021-04-28
  • 2021-11-21
  • 2022-12-23
  • 2021-12-22
  • 2022-02-07
  • 2021-06-28
  • 2022-12-23
  • 2022-03-05
猜你喜欢
  • 2021-11-09
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
  • 2021-09-19
  • 2022-12-23
  • 2021-12-21
相关资源
相似解决方案