Files
CodeObject/zeta_python/1920.py
2021-02-13 19:46:00 +09:00

10 lines
177 B
Python

N = int(input())
A = list(map(int, input().split()))
M = int(input())
K = list(map(int, input().split()))
for k in K:
if k in A:
print(1)
else:
print(0)