| Concurso de programación ANIEI 2023 |
|---|
| Finished |
Juan is a young entrepreneur who owns a souvenir shop on an exotic tourist island. The island is known for its white sandy beaches, crystal-clear waters, and a wide variety of local products that attract tourists from around the world. Juan works diligently in his shop, serving visitors and selling unique island souvenirs.
Each item in the shop has a price in dollars, and tourists purchase these items as mementos of their visit to the beautiful island. To facilitate the payment process and provide excellent customer service, Juan wants to calculate the minimum number of bills of a specific denomination needed to pay for an item of a given price.
Given an item with a price in dollars and a bill denomination, your task is to help Juan calculate the minimum number of bills of that denomination required to pay for the item.
The input consists of two lines:
- The first line contains an integer $$$A$$$ $$$(1 \leq A \leq 10^9)$$$, which represents the bill denomination that Juan accepts in his shop.
- The second line contains an integer $$$B$$$ $$$(1 \leq B \leq 10^9)$$$, which represents the price of the item that a tourist wants to purchase.
Print a single integer, which is the minimum number of bills of denomination $$$A$$$ needed to pay for the item of price $$$B$$$.
210
5
55
1
310
4
| Name |
|---|


