------------
###### 千年50****
by kongxiangzhen @ 2019-09-28 17:03:40
a[i],b[i]不应该设定为65吗?
by Velix @ 2019-09-28 17:05:16
还有,就不能用字符串吗?
by Velix @ 2019-09-28 17:06:05
@[朕是蒟蒻](/space/show?uid=239358) 什么意思
by kongxiangzhen @ 2019-09-28 17:09:38
```cpp
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
char a[10],b[10];
int x,y,s1=1,s2=1;
for(int i=0;i<=10;i++)
{
a[i]=65;
b[i]=65;
}
scanf("%s",a);
scanf("%s",b);
for(int i=0;i<=6;i++)
{
s1*=(a[i]-64);
s2*=(b[i]-64);
}
x=s1%47;
y=s2%47;
if(x==y)
cout<<"GO";
else
cout<<"STAY";
return 0;
}
```
by kongxiangzhen @ 2019-09-28 17:10:31
是这个意思吗
by kongxiangzhen @ 2019-09-28 17:10:59
写成“string a,b;cin>>a>>b;”
不用char
by 寒火经常AC @ 2019-09-28 17:14:06
###### ****谢大佬
by kongxiangzhen @ 2019-09-28 17:15:26
~~看篇题解吧~~
by 寒火经常AC @ 2019-09-28 17:15:43
###### **谢大佬**
by kongxiangzhen @ 2019-09-28 17:15:59