반응형
https://www.acmicpc.net/problem/14470
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
if a < 0:
time = -a * c + d + b * e
else:
time = (b - a) * e
print(time)
반응형
'📚 Algorithm' 카테고리의 다른 글
[Python] 백준 19944번 뉴비의 기준은 뭘까? (0) | 2021.06.30 |
---|---|
[Python] 백준 5575번 타임 카드 (0) | 2021.06.29 |
[Python] 백준 5596번 시험 점수 (0) | 2021.06.24 |
[Python] 백준 1271번 엄청난 부자2 (0) | 2021.06.23 |
[Python] 백준 10171번 고양이 (2) | 2021.06.22 |
댓글