반응형
# @Author YoungMinKim
# baekjoon
a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
if a<0:
print(abs(a)*c+d+b*e)
else:
print((b-a)*e)
반응형
'백준 문제풀이' 카테고리의 다른 글
baekjoon - python - 15873 (0) | 2021.01.06 |
---|---|
baekjoon - python - 14623 (0) | 2021.01.06 |
baekjoon - python - 14924 (0) | 2021.01.06 |
baekjoon - python - 5533 (0) | 2021.01.03 |
baekjoon - python - 1009 (0) | 2020.12.29 |
댓글