09_MoreDC_26.py
WARNING
โค้ดกาวมากครับ อย่าลอกเลย 😭😭😭
ทำเองเถอะนะครับ จะได้ทำข้อสอบได้ 🥲🥲🥲
py
persons = int(input())
people = {}
fuck_python = []
for i in range(persons):
uid, rest = input().split(":")
items = set(rest.strip().split(", "))
people[uid] = items
fuck_python.append(uid)
target = input()
target_items = people[target]
found = False
for person in fuck_python:
if person == target:
continue
if len(people[person].intersection(target_items)) > 0:
print(person)
found = True
if not found:
print("Not Found")
People who plagiarize Com Prog HW: | People who do Com Prog HW by themself: |
|
|
|---|

