[ํ๋ก๊ทธ๋๋จธ์ค-Lv1] ๋ด์ / Python
๐ Problem Solving/Programmers
import sys
input = sys.stdin.readline
a = list(map(int, input().split()))
b = list(map(int, input().split()))
def solution(a, b):
answer = 0
for i in range(len(a)):
answer += a[i] * b[i]
return answer
print(solution(a, b))
ํด์ค
๊ฐ๋จํ ์ฐ์ฐ๋ฌธ์
'๐ Problem Solving > Programmers' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[ํ๋ก๊ทธ๋๋จธ์ค-Lv1] ์์ ๋ง๋ค๊ธฐ / Python (0) | 2021.06.01 |
---|---|
[ํ๋ก๊ทธ๋๋จธ์ค-Lv1] ํฐ์ผ๋ชฌ / Python (0) | 2021.06.01 |
[ํ๋ก๊ทธ๋๋จธ์ค-Lv1] ํฌ๋ ์ธ ์ธํ๋ฝ๊ธฐ / Python (0) | 2021.06.01 |
[ํ๋ก๊ทธ๋๋จธ์ค-Lv1] K๋ฒ์งธ์ / Python (0) | 2021.06.01 |
[ํ๋ก๊ทธ๋๋จธ์ค-Lv1] ๋ชจ์๊ณ ์ฌ / Python (0) | 2021.06.01 |