Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
587 B
1
Indexable
Never
#include <stdio.h>
#include <string.h>
int main()
{
    int t,count1=0,count2=0;
    scanf("%d",&t);
    for (int i = 1; i <=t; i++)
    {
        int k;
        scanf("%d",&k);
        char n[k],start[]="START38";
        for (int j = 0; j < k; j++)
        {
            scanf("%s",n);
            int ms=strcmp(n,start);
            if (ms==0)
            {
                count1++;
            }
            else
            {
                count2++;
            }
        }
        printf("%d %d",count1,count2);
        
    }
    
    return 0;
}