百家汽车网
您的当前位置:首页2018快手实习笔试题

2018快手实习笔试题

来源:百家汽车网

 

// 第一题
#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

 

因篇幅问题不能全部显示,请点此查看更多更全内容