Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
127404 梁思宸 神族文字 C++ 运行出错 0 46 MS 22156 KB 538 2024-01-25 08:58:12

Tests(0/10):


#include <bits/stdc++.h> using namespace std; map<string, string> mp; string key[100010], word, haha[100010]; int main (){ ios::sync_with_stdio(false); cin.tie(0); int x = 1; while (true){//cat duolij getline(cin, haha[x]); if (haha[x] == "\n") break; int p = haha[x].find(' '); key[x] = haha[x].substr(0, p); mp[key[x]] = haha[x].substr(p + 1, haha[x].size() - p - 1); x++; } x = 1; while (cin >> word){ if (mp[word] == "") cout << "eh" << endl; else cout << mp[word] << endl; } return 0; }


测评信息: