2869번 - 달팽이는 올라가고 싶다
a, b, h = map(int, input().split())
if h%(a - b) > b:
print(h//(a - b) + 1)
else:
print(h//(a - b))
반례입니다
3 2 4
ans 2
댓글을 작성하려면 로그인해야 합니다.
ksh4121 3년 전
a, b, h = map(int, input().split())
if h%(a - b) > b:
print(h//(a - b) + 1)
else:
print(h//(a - b))