We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c4f48c commit eba8109Copy full SHA for eba8109
learntosurf/Binary Search/2025-01-13-[BOJ]-#2776-암기왕.py
@@ -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