B - Swimming Practice Editorial /

Time Limit: 2 sec / Memory Limit: 1024 MiB

配点 : 266 点

問題文

高橋君は今、 A メートル泳ぐことができます。高橋君は毎日 1 回練習をし、 1 回練習をするごとに泳げる距離が B メートル伸びます。

高橋君は C メートル以上泳げるようになりたいです。そのために必要な練習の回数を求めてください。すでに C メートル以上泳げる場合は 0 を出力してください。

制約

  • 1 \leq A \leq 10000
  • 1 \leq B \leq 10000
  • 1 \leq C \leq 10000
  • 入力はすべて整数

入力

入力は以下の形式で標準入力から与えられる。

A B C
  • 1 行目には、今泳げる距離 A 、 1 回の練習で伸びる距離 B 、目標の距離 C がスペース区切りで与えられる。

出力

必要な練習の回数を 1 行で出力せよ。


入力例 1

10 5 30

出力例 1

4

入力例 2

30 5 30

出力例 2

0

入力例 3

1 3 10

出力例 3

3

入力例 4

2393 4226 9029

出力例 4

2

入力例 5

5807 3612 6925

出力例 5

1

Score : 266 pts

Problem Statement

Takahashi can currently swim A meters. He practices once every day, and each practice session increases the distance he can swim by B meters.

Takahashi wants to be able to swim at least C meters. Find the number of practice sessions needed to achieve this. If he can already swim at least C meters, print 0.

Constraints

  • 1 \leq A \leq 10000
  • 1 \leq B \leq 10000
  • 1 \leq C \leq 10000
  • All input values are integers.

Input

The input is given from Standard Input in the following format:

A B C
  • The first line contains A, the distance he can currently swim, B, the increase in distance per practice session, and C, the target distance, separated by spaces.

Output

Print the number of practice sessions needed on a single line.


Sample Input 1

10 5 30

Sample Output 1

4

Sample Input 2

30 5 30

Sample Output 2

0

Sample Input 3

1 3 10

Sample Output 3

3

Sample Input 4

2393 4226 9029

Sample Output 4

2

Sample Input 5

5807 3612 6925

Sample Output 5

1