11734 - Big Number of Teams will Solve This

#include<stdio.h>
#include<string.h>
int main()
{
    char str[100],str1[100],str2[100];
    int t,i,j,len,len1,count,count1,count2,x;
    scanf("%d",&t);
    getchar();
    for(x=1; x<=t; x++)
    {
        count=0;
        count1=0;
        count2=0;
        gets(str);
        scanf("%s",str1);
        getchar();
        len=strlen(str);
        len1=strlen(str1);
        j=0;
        for(i=0; i<len; i++)
        {
            if(str[i]==' ')
            {
                count++;
            }
            else if(str[i]!=' ')
            {
                str2[j]=str[i];
                j++;
            }
        }
        str2[j]='\0';
        if(len==len1)
        {
            for(i=0; i<len; i++)
            {
                if(str[i]==str1[i])
                {
                    count1++;
                }
            }
        }
        for(i=0; i<len1; i++)
        {
            if(str1[i]==str2[i])
            {
                count2++;
            }
        }
        if(count1==len)
        {
            printf("Case %d: Yes\n",x);
        }
        else if(count>0&&count2==len1)
        {
            printf("Case %d: Output Format Error\n",x);
        }
        else
        {
            printf("Case %d: Wrong Answer\n",x);
        }
    }
    return 0;
}

0 comments: (+add yours?)