- 【Level 1 语法基础课】检验赛1
牛逼死了
- 2024-1-9 19:36:01 @
using namespace std;
int main()
{
string s1,s2;
int n,m;
n=1;
m=1;
cin>>s1;
cin>>s2;
for(int i=0;i<s1.size();i++)
{
n*=s1[i]-'A'+1;
}
for(int i=0;i<s2.size();i++)
{
m*=s2[i]-'A'+1;
}
if(n%47==m%47)
{
cout<<"GO";
}
else
{
cout<<"STAY";
}
return 0;
}
0 comments
No comments so far...