Skip to content

Commit

Permalink
Merge pull request #227 from xxubin04/60-xxubin04
Browse files Browse the repository at this point in the history
60-xxubin04
  • Loading branch information
9kyo-hwang authored Oct 8, 2024
2 parents 9b974b0 + 73b37b5 commit e5f1289
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions xxubin04/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,4 @@
| 57차시 | 2024.08.08 | Hash | <a href="https://school.programmers.co.kr/learn/courses/30/lessons/42888">[2019 KAKAO BLIND]오픈채팅방 </a> | https://github.com/AlgoLeadMe/AlgoLeadMe-3/pull/215 |
| 58차시 | 2024.09.04 | DP | <a href="https://www.acmicpc.net/problem/9095">[9095]1,2,3 더하기 </a> | https://github.com/AlgoLeadMe/AlgoLeadMe-3/pull/219 |
| 59차시 | 2024.09.08 | BFS | <a href="https://www.acmicpc.net/problem/21736">[21736]헌내기는 친구가 필요해 </a> | https://github.com/AlgoLeadMe/AlgoLeadMe-3/pull/220 |
| 60차시 | 2024.09.22 | 구현 | <a href="https://www.acmicpc.net/problem/1764">[1764]듣보잡 </a> | https://github.com/AlgoLeadMe/AlgoLeadMe-3/pull/227 |
18 changes: 18 additions & 0 deletions xxubin04/구현/1764_듣보잡.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
input = open(0).readline

N, M = map(int, input().split())
never_listen = set()
never_seen = set()

for n in range(N):
never_listen.add(input().rstrip())

for m in range(M):
never_seen.add(input().rstrip())

never_listen_seen = sorted(list(never_listen & never_seen))

print(len(never_listen_seen))

for i in never_listen_seen:
print(i)

0 comments on commit e5f1289

Please sign in to comment.