찾기
#이분 탐색
백준 1920번 : 수 찾기
1. 풀이
n = int(input())
array = set(map(int, input().split()))
m = int(input())
x = list(map(int, input().split()))
for i in x:
if i not in array:
print('0')
else:
print('1')
Last updated