标签:des style http io ar color os sp for
5 3 1 2 3 4 5 5 4 10
YES YES NO
#include <iostream> #include<stdio.h> #include<string.h> #include<stdlib.h> #include<math.h> #include<malloc.h> #include<stack> using namespace std; int main() { int n,m,i,j; int a[100001],b[100001],c[100001]; memset(c,0,sizeof(c)); cin>>n>>m; for(i=1;i<=n;i++) { cin>>a[i]; c[a[i]]=1; } for(j=1;j<=m;j++) { cin>>b[j]; if(c[b[j]]==1) cout<<"YES"<<endl; else cout<<"NO"<<endl; } }
标签:des style http io ar color os sp for
原文地址:http://blog.csdn.net/lucky_vikey/article/details/41557293