judgetime 简单的判断编译问题

判断程序的代码错误和格式错误(在多余字符为'\t',' ','\n'的情况下)和Accepted

#include
#include
int main()
{
    int n;
    scanf("%d",&n);
    //getchar();
    while(n--)
    {
        char a[6]="START";
        char d[10],e[10],right[1000],wrong[1000];
        scanf("%s",d);
        //printf("%s\n",d);
        getchar();
        int i;
        if(strcmp(d,a)==0)
        {
            char t;
            i=0;
            while(scanf("%c",&t))
            {
                right[i]=t;
                if(right[i]=='\n'&&right[i-1]=='D'&&right[i-2]=='N'&&right[i-3]=='E')
                {
                    i=i-4;
                    break;
                }
                i++;
            }
        }
        int rightnumber=i+1;
        /*for(i=0; irightnumber?wrongnumber:rightnumber;
        for(i=0; i


你可能感兴趣的:(C语言水题)