728x90
반응형
단순 사칙연산 문제이다.
N, A, B, C, D = map(int, input().split())
A = (N//A + (1 if N%A else 0))*B
C = (N//C + (1 if N%C else 0))*D
print(min(A, C))
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 15680번 연세대학교(python) (0) | 2021.02.07 |
---|---|
백준 알고리즘 15610번 Abbey Courtyard(python) (0) | 2021.02.07 |
백준 알고리즘 15236번 Dominos(python) (0) | 2021.02.07 |
백준 알고리즘 15128번 Congruent Numbers(python) (0) | 2021.02.07 |
백준 알고리즘 15080번 Every Second Counts(python) (0) | 2021.02.07 |