Skip to content

Commit eba8109

Browse files
committed
[BOJ] #2776.암기 / 실버4 / 15(O)
1 parent 2c4f48c commit eba8109

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import sys
2+
input = sys.stdin.readline
3+
4+
T = int(input()) # 테스트케이스의 개수
5+
6+
for _ in range(T):
7+
# 수첩1
8+
N = int(input())
9+
note1 = set(map(int, input().split()))
10+
# 수첩2
11+
M = int(input())
12+
note2 = list(map(int, input().split()))
13+
14+
for num in note2:
15+
if num in note1:
16+
print(1)
17+
else:
18+
print(0)
19+

0 commit comments

Comments
 (0)