# 문제: https://school.programmers.co.kr/learn/courses/30/lessons/70128
def solution(a, b):
answer = 0
for i in range(len(a)):
answer = answer + a[i] * b[i]
return answer
반응형
'공부 서랍장 > 알고리즘 공부' 카테고리의 다른 글
[프로그래머스] 폰켓몬 python (0) | 2022.09.16 |
---|---|
[프로그래머스] 시저 암호 python (0) | 2022.09.16 |
[프로그래머스] 멀쩡한 사각형 python (0) | 2022.09.06 |
[프로그래머스] 소수만들기 python (0) | 2022.09.06 |
[프로그래머스] 모의고사 python (0) | 2022.09.06 |