测试60分,向dalao们求助QAQ

P1200 [USACO1.1] 你的飞碟在这儿 Your Ride Is Here

```cpp #include<iostream> #include<iomanip> #include<cstdio> #include<cmath> #include<vector> #include<ctime> #include<cstdlib> #include<cstring> using namespace std; int m,n,a[10000],b[100000],w=1,v=1; char s1[10000],s2[100000]; int main() { scanf("%s",s1); scanf("%s",s2); m=strlen(s1); n=strlen(s2); for(int i=0;i<m;i++) { a[i]=s1[i]-64; v=v*a[i]; } for(int j=0;j<n;j++) { b[j]=s2[j]-64; w=w*b[j]; } if(v%47==w%47) cout<<"GO"<<endl; else cout<<"STAY"<<endl; return 0; } ```
by 市场花园行动 @ 2017-11-11 09:30:36


@[市场花园行动](/space/show?uid=60411) 十分感谢你的答疑,不过不好意思,这里一定要用到数组吗?如果可以的话,我希望能帮忙看看我的代码哪里有问题。
by 时光的跳跃 @ 2017-11-12 11:53:20


|