728x90
반응형
단순 사칙연산 문제이다.
e, f, c = map(int, input().split())
n = (e+f)//c + (e+f)%c
res = (e+f)//c
while n//c:
res += n//c
n = n//c + n%c
print(res)
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 5533번 유니크(python) (0) | 2021.02.25 |
---|---|
백준 알고리즘 5355번 화성 수학(python) (0) | 2021.02.25 |
백준 알고리즘 3062번 수 뒤집기(python) (0) | 2021.02.25 |
백준 알고리즘 2896번 무알콜 칵테일(python) (0) | 2021.02.25 |
백준 알고리즘 2755번 이번학기 평점은 몇점?(python) (0) | 2021.02.25 |