求助!!!
查看原帖
求助!!!
1577630
pigeon4836楼主2024/12/30 16:48

为什么5个WA

#include<cstdio>
int main()
{
    int team,star;
    char tc,sc;
    while(scanf("%c",&sc)!=EOF)
    {
    	if(int(sc)==13)
    		continue;
    	star=star+sc-64;
	}
    while(scanf("%c",&tc)!=EOF)
    {
    	if(int(tc)==13)
    		continue;
    	team=team+tc-64;
	}
    team%=47,star%=47;
    if(team==star)
    	printf("GO");
    else
    	printf("STAY");
    return 0;
}
2024/12/30 16:48
加载中...