#include<iostream>
#include<string>
using namespace std; int main(){
string a,b ;
long m,n;
m=;n=;
cin>>a>>b; for(int i = ; i < a.length(); i++)
{
m *= (a[i] - );
m = m % ;
} for(int i = ; i < b.length(); i++)
{
n *= (b[i] - );
n = n % ;
} if(m % == n % )
{
cout<<"GO"<<endl;
cout<<"r1=r2="<<m%<<endl;
}
else
{
cout<<"STAY"<<endl;
cout<<"r1="<<m%<<" r2="<<n%<<endl;
}
//cout<<m<<" "<<n<<endl;
return ;
}
相关文章
- MySQL——ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds……
- ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
- [42000][1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL
- Navicat新建create_time字段默认值为CURRENT_TIMESTAMP后保存报错1064
- ERROR 1064 (42000): You have an error in your SQL syntax;
- SQL 错误 [1064] [42000]: You have an error in your SQL syntax; check the manual that corresponds to yo
- MySQL Workbench导出Model提示['ERROR 1064 (42000): You have an error in your SQL syntax....syntax to use near 'VISIBLE']
- MySQL 查询语句 错误代码 1064原因以及解决问题
- Mysql 常见错误代码: 1064
- [288]关于MySQL的1064错误