File tree 2 files changed +45
-0
lines changed
baekjoon/problems/[1920]수찾기 2 files changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+ """
3
+ 문제 이름: 수 찾기
4
+ 문제 번호: 1920
5
+ 문제 링크: https://www.acmicpc.net/problem/1920
6
+ 난이도: Silver IV
7
+ 태그: 이분 탐색
8
+ """
9
+ import sys
10
+
11
+ def input (): return sys .stdin .readline ().rstrip ()
12
+
13
+ _ , N = input (), set ([int (x ) for x in input ().split ()])
14
+ _ , M = input (), [int (x ) for x in input ().split ()]
15
+
16
+ for i in M :
17
+ print ('1' if i in N else '0' )
Original file line number Diff line number Diff line change
1
+ ---
2
+ file : " 1920.md"
3
+ name : " 수 찾기"
4
+ src : " https://www.acmicpc.net/problem/1920"
5
+ tags :
6
+ - 이분 탐색
7
+ done : true
8
+ draft : false
9
+ level : 7
10
+ difficulty : " Silver IV"
11
+ date : 2021-11-12
12
+ ---
13
+
14
+ # 수 찾기
15
+
16
+ ## 풀이 코드
17
+
18
+ ``` python
19
+ import sys
20
+
21
+ def input (): return sys.stdin.readline().rstrip()
22
+
23
+ _, N = input (), set ([int (x) for x in input ().split()])
24
+ _, M = input (), [int (x) for x in input ().split()]
25
+
26
+ for i in M:
27
+ print (' 1' if i in N else ' 0' )
28
+ ```
You can’t perform that action at this time.
0 commit comments