找球号(一)
import java.util.HashMap;
import java.util.Scanner;
public class Main {//此题测试数据有误,只有一组测试数据
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
int m=input.nextInt();
int n=input.nextInt();
HashMap<Integer,Boolean> map=new HashMap<Integer,Boolean>();
for(int i=0;i<m;i++){
int x=input.nextInt();
map.put(x, true);
}
for(int i=0;i<n;i++){
int x=input.nextInt();
if(map.get(x)==null)
System.out.println("NO");
else
System.out.println("YES");
}
}
}