import sys
cnt = 0
for line in sys.stdin:
if cnt%4==0:
N = int(line)
elif cnt%4==1:
numSet = set(line.strip().split())
elif cnt%4==2:
M = int(line)
else:
findNum = list(line.strip().split())
for num in findNum:
if num in (numSet):
print("YES")
else:
print("NO")
cnt += 1
KY199 查找
最新推荐文章于 2024-08-24 21:01:27 发布