文章
38
粉丝
11
获赞
467
访问
69.2k
 
#include<bits/stdc++.h>
using namespace std;
int main(){
    int n,q;
    while(cin >> n){
        map<int,int> mp;
        for(int i = 0;i < n;i++){
            int x;
            cin >> x;
            mp[x] = 1;
        }
        cin >> q;
        for(int i = 0;i < q;i++){
            int xx;
            cin >> xx;
            if (mp.find(xx) == mp.end()) {
                    mp[xx] = 1;
                    cout << "no" << endl;
            }
         ...
登录后发布评论
暂无评论,来抢沙发