パナソニックプログラミングコンテスト(AtCoder Beginner Contest 186)
翻译中…
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.
翻译中…
样例
Input #1
10 3
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.
Input #2
1000 1
Output #2
1000
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。