> 您的格式……
by rui_er @ 2019-02-12 12:20:18
字符串长度不一定为6啊...
by AC_Automation @ 2019-02-12 13:33:12
用string不好吗...
by AC_Automation @ 2019-02-12 13:37:56
```cpp
#include <iostream>
#include <cstring>
using namespace std;
int main() {
string a,b;
long long x=1,y=1;
cin>>a>>b;
for(int i=0;i<a.size();i++)
{
x*=(a[i]-64);
x%=47;
}
for(int i=0;i<b.size();i++)
{
y*=(b[i]-64);
y%=47;
}
if(x==y)
cout<<"GO\n";
else
cout<<"STAY\n";
return 0;
}
```
by AC_Automation @ 2019-02-12 13:38:25