Problem list
Log in
#r02773 · Online Judge > GoldOJ

Climbing to the Goal

Bronze II 2.0 s 1024 MB

Each day an object rises $a$; each night it falls $b$. Once it reaches the goal $c$ it does not fall that night. Print how many days it takes to reach $c$.

Input

Three integers $a$, $b$, $c$ ($1 \le b < a \le c \le 10000$).

Output

Print the number of days to reach the goal.

Example 1

Input
5 2 12
Output
4
Source
Online Judge > GoldOJ
Appears in
Not part of a ladder, contest or set yet.
Accepted 0 Submissions 0 Acceptance 0% Solvers 0

Discussion

Threads about this problem. Spoilers are collapsed; wrap hints in ||double bars||.

No discussion yet. Start a thread if something here needs explaining.

Recent submissions Open with filters
Code