본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 30527번 Cornhusker

by 현장 2025. 4. 3.

-Code

al = list(map(int, input().split()))
n, kwf = map(int, input().split())
total = 0

for i in range(0, 10, 2):
    total += al[i] * al[i + 1]

res = total // 5 * n // kwf
print(res)