void 字符串转数字()
{//缘由https://ask.csdn.net/questions/1056466#answer_1253978
char a[8]{}, b[8]{};
int i = 0, s1 = 1, s2 = 1;
while (scanf_s("%c", &a[i]))
{
s1 *= (a[i++] - 'A' + 1);
if (a[i - 1] == '\n')break;
}
i = 0;
while (scanf_s("%c", &b[i]))
{
s2 *= (b[i++] - 'A' + 1);
if (b[i - 1] == '\n')break;
}
if ((s1 % 47) == (s2 % 47))
printf("GO");
else
printf("STAY");
}
03-28
1250
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
10-03
1509
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)