Beakjoon&프로그래머스/파이썬

[백준/파이썬] 24736번 Football Scoring

현장 2022. 3. 18. 18:03

-코드

point = [6, 3, 2, 1, 2]
team1 = list(map(int, input().split()))
team2 = list(map(int, input().split()))
point1, point2 = 0, 0
for i in range(5):
    point1 += team1[i] * point[i]
    point2 += team2[i] * point[i]
print(point1, point2)