14470번 풀이 [Python]

sua·2022년 6월 21일
0

Baekjoon

목록 보기
61/161
post-thumbnail

문제


풀이

a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())

n = 0
if a < 0:
    n = -a * c + b * e + d
else:
    n = (b - a) * e

print(n)
profile
가보자고

0개의 댓글