[백준] 14470번 : 전자레인지 - Python(파이썬)

강재원·2022년 9월 19일
0

[코딩테스트] Python

목록 보기
50/200



https://www.acmicpc.net/problem/14470

a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
time=0
if a<0:
    time+=abs(a)*c
    a=0
if a==0: time+=d
time+=(b-a)*e
print(time)
profile
개념정리 & 문법 정리 & 알고리즘 공부

0개의 댓글