文章
33
粉丝
78
获赞
3
访问
18.4k
#include <stdio.h>
#include <iostream>
#include <algorithm>
#include <map>
using namespace std;
int main(){
int n,q,x;
map<int,int> NUM;
cin >> n;
for (int i = 0;i <n;i++){
cin >> x;
NUM[x]++;
}
cin >> q;
for (int i = 0;i < q;i++){
cin >>x;
if(NUM[x] == 0){
NUM[x]++;
cout << "no" <<endl;
}
else
cout <<"find" <<endl;
}
 ...
登录后发布评论
暂无评论,来抢沙发