60分求条,玄关
查看原帖
60分求条,玄关
1686806
yanghechen楼主2025/7/29 20:31

https://www.luogu.com.cn/record/227668526

#include<bits/stdc++.h>
using namespace std;
int main()
{
	string s1,s2;
	int n1=1,n2=1;
	cin>>s1>>s2;
	for(int i=0;i<s1.length();i++)
	{
		n1*=s1[i]-'@';
	}
	for(int i=0;i<s2.length();i++)
	{
		n1*=s2[i]-'@';
	}
	n1%=47;n2%=47;
	if(n1==n2)cout<<"GO";
	else cout<<"STAY";
	return 0;
}
2025/7/29 20:31
加载中...