OJ-Problems-Source/HDOJ/2030_autoAC.cpp
2016-08-19 16:52:35 +08:00

21 lines
344 B
C++

#include <stdio.h>
#include <string.h>
int main(void)
{
int n;
int count;
char c;
scanf("%d%*c", &n);
while (n--)
{
count = 0;
while ((c = getchar()) != '\n')
{
if (c < 0)
count++;
}
printf("%d\n", count / 2);
}
return 0;
}