Skip to content

Commit b904f19

Browse files
committed
[BOJ] 1764 듣보잡 (S4)
1 parent c4f3886 commit b904f19

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

심수연/11주차/260309.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# https://www.acmicpc.net/problem/1764
2+
3+
import sys
4+
input = sys.stdin.readline
5+
6+
N, M = map(int, input().split())
7+
8+
didnt_heard = set()
9+
didnt_see = set()
10+
11+
for _ in range(N):
12+
didnt_heard.add(input().strip())
13+
14+
for _ in range(M):
15+
didnt_see.add(input().strip())
16+
17+
didnt_heard_see = sorted(list(didnt_heard & didnt_see))
18+
19+
print(len(didnt_heard_see))
20+
for i in didnt_heard_see:
21+
print(i)

0 commit comments

Comments
 (0)