90分求助
查看原帖
90分求助
1128442
An__Apple楼主2024/6/5 21:59

本想着就一道水题这么简单,结果就是过不了,气死我了(╯▔皿▔)╯,最后一个测试点硬是过不了,下载的测试点都过了,但提交上去还是过不了,求大佬相助。

#include<iostream>
using namespace std;
int x=1,y=1;
int main(){
	char t;
	do {
		t=getchar();
		x*=t-64;
	}while(t!='\n');
	do{
		t=getchar();
		y*=t-64;
	}while(t!='\n');
	if(x%47==y%47) cout<<"GO";
	else cout<<"STAY";
	cout<<endl;
	
	return 0;
}
2024/6/5 21:59
加载中...