def solution(a, b):
n = len(a)
sum=0
for i in range(0,n):
sum+=a[i]*b[i]
return sum'프로그래머스' 카테고리의 다른 글
| Level1 K번째 수 (0) | 2022.02.02 |
|---|---|
| Level1 소수 만들기 (0) | 2022.02.02 |
| Level1 음양 더하기 (0) | 2022.02.02 |
| Level1 없는 숫자 더하기 (0) | 2022.02.02 |
| Level2 프린터 (0) | 2022.01.28 |
댓글