文章
4
粉丝
72
获赞
2
访问
2.9k
#include<bits/stdc++.h>
using namespace std;
int a[10010];
int b[10010];
int main() {
int n, m;
while (cin >> n) {
for (int i = 0; i < n; i++) {
int tmp;
cin >> tmp;
a[tmp]++;
}
cin >> m;
for (int i = 0; i < m; i++) {
cin >> b[i];
if (a[b[i]]) cout << "YES" << endl;
else cout << "NO" << endl;
}
}
return 0;
}
登录后发布评论
暂无评论,来抢沙发