https://school.programmers.co.kr/learn/courses/30/lessons/176963
프로그래머스
코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.
programmers.co.kr
비교적 간단했던 문제
def solution(name, yearning, photo):
answer = []
ppl_dict = dict(zip(name, yearning))
for p in photo:
score = 0
for person in p:
try: score += ppl_dict[person]
except: pass
answer.append(score)
return answer
'Coding Test' 카테고리의 다른 글
[프로그래머스] 달리기 경주 in Python (0) | 2023.06.28 |
---|---|
[프로그래머스] 빛의 경로 사이클 문제풀이 in Python (0) | 2021.10.11 |
[백준] 10845번: 파도반 수열 문제풀이 in Python (0) | 2021.08.31 |
[프로그래머스] 캐시 문제풀이 in Python (0) | 2021.08.18 |
[프로그래머스] 스킬트리 문제풀이 in Python (0) | 2021.08.13 |