PivotOJ

PUŽ

시간 제한: 250ms메모리 제한: 128MB출처: COCI 2010-2011BOJ 2869

문제

There is a snail on the ground. It wants to climb to the top of a wooden pole with the height of V meters, measuring from the ground level. In one day it can climb A meters upwards, however during each night it sleeps, sliding B meters back down. Determine the number of days it needs to climb to the top. 

입력

The first and only line of input contains three integers separated by a single space: A, B, and V (1 ≤ B < A ≤ V ≤ 1 000 000 000), with meanings described above. 

출력

The first and only line of output must contain the number of days that the snail needs to reach the top. 

 

예제

예제 1

입력
2 1 5
출력
4

예제 2

입력
5 1 6
출력
2

예제 3

입력
100 99 1000000000
출력
999999901
코드를 제출하려면 로그인하세요.