

Time Limit: 2 sec / Memory Limit: 1024 MB
配点 : 100 点
問題文
トラックが 1 台あります。このトラックには合計で N キログラム以下の荷物を載せることができます。
このトラックに、1 個 W キログラムのレンガを最大でいくつ載せることができますか?
制約
- 1\leq N,W \leq 1000
- N,W は整数である。
入力
入力は以下の形式で標準入力から与えられる。
N W
出力
トラックに載せることができるレンガの個数の最大値を整数で出力せよ。
入力例 1
10 3
出力例 1
3
レンガは 1 個 3 キログラムなので、3 個で 9 キログラム、4 個で 12 キログラムになります。
したがって、10 キログラムまで載せることができるトラックには、最大 3 個のレンガを載せることができます。
入力例 2
1000 1
出力例 2
1000
Score : 100 points
Problem Statement
We have a truck, which can carry at most N kilograms.
We will load bricks onto this truck, each of which weighs W kilograms. At most how many bricks can be loaded?
Constraints
- 1\leq N,W \leq 1000
- N and W are integers.
Input
Input is given from Standard Input in the following format:
N W
Output
Print an integer representing the maximum number of bricks that can be loaded onto the truck.
Sample Input 1
10 3
Sample Output 1
3
Each brick weighs 3 kilograms, so 3 bricks weigh 9 kilograms, and 4 weigh 12 kilograms.
Thus, we can load at most 3 bricks onto the truck that can carry at most 10 kilograms.
Sample Input 2
1000 1
Sample Output 2
1000