Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
81070 sh25_zhuwy 1.1.1 Your Ride Is Here 你的飞碟在这儿 C++ 无测评数据 0 MS 0 KB 430 2026-01-04 15:38:14

Tests(0/0):


#include <iostream> #include <string> using namespace std; string s, t; int value(string x) { int ans = 1; for ( int i = 0 ; i < x.length() ; ++ i ) { ans = ans * (x[i] - 'A' + 1); } ans %= 47; return ans; } int main() { cin >> s >> t; if ( value(s) == value(t) ) { cout << "GO\n"; }else { cout << "STAY\n"; } return 0; }