first commit
from old repository to a new repository
This commit is contained in:
12
boj/1920.py
Normal file
12
boj/1920.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from sys import stdin
|
||||
n=int(stdin.readline().rstrip())
|
||||
a=set(map(int,stdin.readline().rstrip().split()))
|
||||
|
||||
m=int(stdin.readline().rstrip())
|
||||
b=list(map(int,stdin.readline().rstrip().split()))
|
||||
|
||||
for i in range(m):
|
||||
if b[i] in a:
|
||||
print(1)
|
||||
else:
|
||||
print(0)
|
||||
Reference in New Issue
Block a user