@[秋名山ios君](/space/show?uid=118653) 哪里都有毛病
by WA鸭鸭 @ 2018-08-30 17:45:34
@[WA鸭鸭](/space/show?uid=93249) 求大神指点
by Raccoon·S @ 2018-08-30 17:50:30
@[秋名山ios君](/space/show?uid=118653) x和h要分开计算
by WA鸭鸭 @ 2018-08-30 17:51:41
@[WA鸭鸭](/space/show?uid=93249) 为什么
by Raccoon·S @ 2018-08-30 17:52:34
@[秋名山ios君](/space/show?uid=118653) 不然p有什么用
by WA鸭鸭 @ 2018-08-30 17:54:57
@[WA鸭鸭](/space/show?uid=93249) 貌似是的。
by Raccoon·S @ 2018-08-30 17:56:27
我再改改
by Raccoon·S @ 2018-08-30 17:56:37
@[秋名山ios君](/space/show?uid=118653) 还有,cin>>a和cin>>b不要合在一起,不然蜜汁错误
by WA鸭鸭 @ 2018-08-30 18:00:02
@[WA鸭鸭](/space/show?uid=93249) 哦?
by Raccoon·S @ 2018-08-30 18:01:28
@[秋名山ios君](/space/show?uid=118653)
```cpp
#include <bits/stdc++.h>
using namespace std;
int main()
{
char a[6],b[6];
int c[6],d[6];
int x=1,h=1;
cin>>a;
int t=strlen(a);
for(int i=0;i<=t-1;i++)
{
c[i]=a[i]-64;
}
for(int i=0;i<=t-1;i++){
x*=c[i];
}
cin>>b;
int p=strlen(b);
for(int i=0;i<=p-1;i++)
{
d[i]=b[i]-64;
}
for(int i=0;i<=p-1;i++){
h*=d[i];
}
/*
int z1,z2;
z1=x%47;
z2=h%47;
if(z1==z2){
cout<<"GO"<<endl;
}
else
{
cout<<"STAY"<<endl;
}
z1 z2 可以不要
*/
if(h%47==x%47){
cout<<"GO"<<endl;
}
else
{
cout<<"STAY"<<endl;
}
return 0;
}
```
by WA鸭鸭 @ 2018-08-30 18:03:14