Skip to content

Commit e2fc5ec

Browse files
committed
solve: 1920 수 찾기
1 parent 22d2fdc commit e2fc5ec

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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')
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
```

0 commit comments

Comments
 (0)