#P1421. 小玉买文具
小玉买文具
Xiaoyu Buys Stationery
Problem Source
Luogu P1421
Problem Description
The homeroom teacher gave Xiaoyu a task: buy as many signing pens as possible at the stationery shop. A signing pen costs yuan jiao, and the teacher gave Xiaoyu yuan jiao. Xiaoyu wants to know the maximum number of signing pens she can buy.
Input Format
The input is a single line containing two integers: and .
Output Format
Output one line containing one integer: the maximum number of signing pens Xiaoyu can buy.
Sample Input
10 3
Sample Output
5
Constraints
For all test cases, , are guaranteed.
Hint
- The money is given as "so many yuan and so many jiao", while a pen is yuan jiao — the units don't match. First convert all money to a single unit before computing.
- "The maximum number of pens" is an integer answer — think about whether integer division's truncation toward zero helps you.
- Check against the sample:
10 3→5.