Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

60-xxubin04 #227

Merged
merged 2 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion xxubin04/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,7 @@
| 54μ°¨μ‹œ | 2024.07.11 | Tree | <a href="https://www.acmicpc.net/problem/1991">[1991]트리 순회 </a> | https://github.com/AlgoLeadMe/AlgoLeadMe-3/pull/203 |
| 55μ°¨μ‹œ | 2024.07.29 | μ •λ ¬ | <a href="https://school.programmers.co.kr/learn/courses/30/lessons/42747?language=python3">[Programmers]H-Index </a> | https://github.com/AlgoLeadMe/AlgoLeadMe-3/pull/208 |
| 56μ°¨μ‹œ | 2024.08.05 | κ΅¬ν˜„ | <a href="https://school.programmers.co.kr/learn/courses/30/lessons/17677#">[2018 KAKAO BLIND]λ‰΄μŠ€ ν΄λŸ¬μŠ€ν„°λ§ </a> | https://github.com/AlgoLeadMe/AlgoLeadMe-3/pull/211 |
| 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 |
| 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))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

μ˜€μ˜€μ˜Ήγ…‡..!
set을 μ΄λ ‡κ²Œ μ‚¬μš©ν•˜λ©΄ ꡐ집합이 λ˜λŠ”κ΅°μš”?
재밌고 μŒˆλ½•ν•œκ±° μ•Œμ•„κ°‘λ‹ˆλ‹€!


print(len(never_listen_seen))

for i in never_listen_seen:
print(i)
Loading