1 solutions
-
0
#include<bits/stdc++.h> using namespace std; string huixing; string zhichi; int main() { cin>>huixing; cin>>zhichi; int total1=1; int total2=1; for(int i=0;i<huixing.size();i++) { total1*=huixing[i]-'A'+1; } for(int i=0;i<zhichi.size();i++) { total2*=zhichi[i]-'A'+1; } // cout<<total1%47<<" "<<total2%47; if(total1%47==total2%47) cout<<"GO"; else cout<<"STAY"; }
- 1
Information
- ID
- 216
- Time
- 1000ms
- Memory
- 125MiB
- Difficulty
- 10
- Tags
- # Submissions
- 1
- Accepted
- 1
- Uploaded By