## 去教室了
###### 有大神请点@
by wing_离殇 @ 2019-04-01 13:50:06
# dd
by wing_离殇 @ 2019-04-03 13:05:12
#include <bits/stdc++.h>
using namespace std;
int main()
{
string a,b;
cin>>a>>b;
int p=1,q=1;
for(int i=0;i<a.size();i++)
{
p*=(a[i]-64);
}
for(int i=0;i<b.size();i++)
{
q*=(b[i]-64);
}
p%=47;
q%=47;
if(p==q)
{
cout<<"GO"<<endl;
}
else
{
cout<<"STAY";
}
return 0;
}
这样试试
by 拂清歌 @ 2019-05-01 13:28:40