[백준] 2869번 : 달팽이는 올라가고 싶다 - Python(파이썬)

강재원·2022년 10월 17일
0

[코딩테스트] Python

목록 보기
120/200



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

a,b,v=map(int,input().split())
k=int((v-b)/(a-b))
m=(v-b)%(a-b)
if m==0:
    print(k)
else:
    print(k+1)
profile
개념정리 & 문법 정리 & 알고리즘 공부

0개의 댓글