No.388 Stairs (1)
Problem Statement
Stair loves climbing stairs. Today, too, he is climbing his favorite staircase at a temple in his neighborhood.
When he reached step $S$, Stair suddenly wondered which floor of his own house his current height corresponds to.
Given the number of steps $F$ that corresponds to one story of Stair's house, calculate which floor Stair is on now.
Input
$S \ F$
The step number $S$ where Stair currently is and the number of steps $F$ corresponding to one story of Stair's house are given, separated by a space.
All inputs are integers and satisfy the following constraints.
$0 \le S \le 456$
$1 \le F \le 123$
Output
Output which floor Stair is on now. Print a newline at the end.
Sample
Sample 1
Input
13 13
Output
2
He has climbed exactly one story, so he is on the 2nd floor.
Sample 2
Input
39 10
Output
4
Stair's head is probably at the height of the 5th floor, but his feet are on the 4th floor, so the answer is the 4th floor.
Sample 3
Input
50 123
Output
1
Perhaps Stair's house is very large, or perhaps each step of the temple's staircase is very low.
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。
Tawara
37zigen