본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 31282번 HUNTING DOG

by 현장 2024. 1. 23.

-Code

n, m, k = map(int, input().split())
dog, bunny, cnt = 0, n, 0

while dog < bunny:
    dog += k
    bunny += m
    cnt += 1

print(cnt)