#include<stdio.h> 
#include<string.h> 
int main() 
{ 
    int i,T,count; 
    char str[1000]; 
    scanf("%d",&T); 
	getchar();
    while(T--) 
    { 
        count=0;
        gets(str); 
		/*
        int len=strlen(str); 
        printf("%d\n",len);  
        输入“你大爷”,输出6,所以最后需要除2 
        */
        for(i=0;str[i]!='\0';++i)
        { 
            if(str[i]<0) 
                ++count; 
        } 
        printf("%d\n",count>>1); 
    } 
    return 0; 
} 

 

相关文章:

  • 2021-12-27
  • 2022-12-23
  • 2021-08-17
  • 2021-09-01
  • 2022-01-23
  • 2022-12-23
  • 2021-12-20
猜你喜欢
  • 2022-02-19
  • 2021-09-15
  • 2022-02-08
  • 2022-12-23
  • 2021-10-10
相关资源
相似解决方案