728x90
반응형
SMALL
n , m = map(int, input().split())
a, lst = list(map(int, input().split())), []
for i in range(n -1):
lst.append(a[i] * m + a[i+1] * m)
print(min(lst))
728x90
반응형
LIST
'백준문제 > 브론즈 4' 카테고리의 다른 글
백준) 28352번 - python (0) | 2024.05.02 |
---|---|
백준) 28290번 - python (0) | 2024.05.01 |
백준) 25304번 - python (0) | 2024.04.29 |
백준) 24723번 - python (0) | 2024.04.28 |
백준) 19944번 - python (0) | 2024.04.27 |