Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
127203 林扬泉 神族文字 C++ 通过 100 670 MS 16644 KB 479 2024-01-25 08:23:26

Tests(10/10):


#include<bits/stdc++.h> using namespace std; map<string,string> mp; string s; int main(){ while(true){ getline(cin,s); if(s==""){ break; } string a,b; bool flag=false; for(int i=0;s[i];++i){ if(flag){ b+=s[i]; } else{ if(s[i]==' '){ flag=true; continue; } a+=s[i]; } } mp[b]=a; } while(cin>>s){ if(mp[s]==""){ printf("eh\n"); } else{ cout<<mp[s]<<'\n'; } } return 0; }


测评信息: