Files
CodeObject/zeta/py/1920.py
2025-05-07 04:44:30 +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)