[백준] 5532번 : 방학 숙제 - Python(파이썬)

강재원·2022년 9월 16일
0

[코딩테스트] Python

목록 보기
37/200



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

l=int(input())
a=int(input())
b=int(input())
c=int(input())
d=int(input())
sum=0
sum1=0
if a%c==0: sum=a//c
else: sum=a//c+1
if b%d==0: sum=b//d
else: sum1=b//d+1
print(min(l-sum,l-sum1))
profile
개념정리 & 문법 정리 & 알고리즘 공부

0개의 댓글