// 第一题 #if 0 int main() { int N, M; cin >> N >> M; unordered_set<string> st; for (int i = 0; i < N;i++) { string temp; cin >> temp; st.insert(temp); } for (int i = 0; i < M;i++) { string temp; cin >> temp; if (st.find(temp)!=st.end()) //找到了 { cout << "NO" << endl; } else { st.insert(temp); cout << "YES" << endl; } } return 0; } #endif