Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
127327 黄一航 神族文字 C++ 通过 100 620 MS 11192 KB 338 2024-01-25 08:41:19

Tests(10/10):


#include <bits/stdc++.h> #define int long long using namespace std; map<string,string> mp; string s; signed main() { while (true) { getline(cin,s); if (s == "") break; int pos = s.find(' '); mp[s.substr(pos + 1)] = s.substr(0,pos); } while (cin >> s) cout << (mp.count(s)?mp[s]:"eh") << '\n'; return 0; }


测评信息: