mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
21 lines
344 B
C++
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;
|
||
|
}
|