标签:turn har using 散列 main return out for ios
#include<iostream> using namespace std; const int maxn =10010; bool hashTable[maxn] = {false};//初始化为FALSE int main() { int n,m,x; cin>>n>>m; for(int i=0;i<n;i++) { cin>>x; hashTable[x] =true; } for(int i=0;i<n;i++) { cin>>x; if(hashTable[x]==true) { cout<<"YES"<<endl; } else { cout<<"NO"<<endl; } return 0; } }
标签:turn har using 散列 main return out for ios
原文地址:https://www.cnblogs.com/chuxinbubian/p/11581868.html