#include <iostream> #include<string> #include<map> using namespace std; int main() { int n; cin >> n; string str; getchar(); map<string, string>m; for (int i = 0; i < n; ++i) { getline(cin, str); int j = 0; for (; str[j] != ' '; ++j); m[string(str.begin(), str.begin() + j)] = str; } cin >> n; for (int i = 0; i < n; ++i) { cin >> str; if(m.find(str)!=m.end()) cout << m[str] << endl; else cout<<"No Answer!"<<endl; } } // 64 位输出请用 printf("%lld")
乱杀