输入这里有一点问题
star和group全算进star里了
建议用string
by gotocspandbetter @ 2023-09-24 19:15:50
@[Phigros_Guest](/user/327281)
by gotocspandbetter @ 2023-09-24 19:18:18
@[gotocspandbetter](/user/1041003)
听不懂(悲,为什么group读进了star?
by Phigros_Guest @ 2023-09-24 19:37:46
我把group和star输出时发现的
by gotocspandbetter @ 2023-09-24 19:41:33
```cpp
#include <iostream>
using namespace std;
int main(){
string a, b;
cin >> a >> b;
int valuea = 1;
for(int i = 0; i < a.length(); ++ i)
valuea *= a[i] - 'A' + 1;
int valueb = 1;
for(int i = 0; i < b.length(); ++ i)
valueb *= b[i] - 'A' + 1;
if(valuea % 47 == valueb % 47)
cout << "GO" << endl;
else
cout << "STAY" << endl;
}
```
by monodev @ 2023-10-05 20:52:45