mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2025-01-12 01:51:59 +00:00
parent
2cb9668697
commit
5ef94afc51
26
AtCoder/ABC236/C/C.cpp
Normal file
26
AtCoder/ABC236/C/C.cpp
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
#include <iostream>
|
||||||
|
#include <map>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
using std::cin;
|
||||||
|
using std::cout;
|
||||||
|
using std::endl;
|
||||||
|
|
||||||
|
int n, m;
|
||||||
|
std::string s[100005], a;
|
||||||
|
std::map<std::string, bool> map;
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
cin >> n >> m;
|
||||||
|
for (int i = 1; i <= n; i++) {
|
||||||
|
cin >> s[i];
|
||||||
|
}
|
||||||
|
for (int i = 1; i <= m; i++) {
|
||||||
|
cin >> a;
|
||||||
|
map[a] = true;
|
||||||
|
}
|
||||||
|
for (int i = 1; i <= n; i++) {
|
||||||
|
cout << (map[s[i]] ? "Yes" : "No") << endl;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user