반응형
https://www.acmicpc.net/problem/5532
5532번: 방학 숙제
한 줄에 하나씩 총 다섯 줄에 걸쳐 L, A, B, C, D가 주어진다. (2 ≤ L ≤ 40, 1 ≤ A, B ≤ 1000, 1 ≤ C, D ≤ 100) 항상 방학 숙제를 방학 기간내에 다 할 수 있는 경우만 입력으로 주어진다.
www.acmicpc.net
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)))
반응형
'📚 Algorithm' 카테고리의 다른 글
[Python]백준 11283번 한글2 (0) | 2021.07.30 |
---|---|
[Python] 백준 2522번 별찍기 -12 (0) | 2021.07.23 |
[Python] 백준 14928번 큰 수 (BIG) (0) | 2021.07.14 |
[Python] 17388번 와글와글 숭고한 (3) | 2021.07.09 |
[Python] 백준 10039번 평균 점수 (0) | 2021.07.09 |
댓글