본문 바로가기

Programming [Python]/백준 알고리즘 솔루션

#234 백준 파이썬 [5532] 방학 숙제

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

 

Python Code

import math
L = int(input())
A = int(input())
B = int(input())
C = int(input())
D = int(input())

print(L - max(math.ceil(A/C), math.ceil(B/D)))