import sys
N = int(sys.stdin.readline())
A = list(map(int, sys.stdin.readline().rstrip().split()))
M = int(sys.stdin.readline())
B = list(map(int, sys.stdin.readline().rstrip().split()))
C = []
for i in B:
if i in A:
C.append(1)
else:
C.append(0)
for j in C:
print(j, sep='\n')
์๊ฐ ์ด๊ณผ, ๋ค์ ํ๊ธฐ!!! ์ด๋ถ ํ์ ๊ฐ๋ ๊ณต๋ถ
'๐ Python > ๋ฐฑ์ค' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[10430]๋๋จธ์ง (0) | 2022.02.24 |
---|---|
[10926]??! (0) | 2022.02.24 |
[10952]A+B-5 (0) | 2022.02.22 |
[10870]ํผ๋ณด๋์น ์ 5 (0) | 2022.02.21 |
[10819]์ฐจ์ด๋ฅผ ์ต๋๋ก (0) | 2022.02.18 |