Mock CCC '24 Contest 1 J1 - Lemon Bathtub
View as PDFDriven by his passion for all things lemony, Tommy yearns to transform his bathing ritual into a citrus-infused delight. However, a setback looms as his beloved bathtub spout succumbs to disrepair. Unfazed by this challenge, Tommy ingeniously orchestrates a solution—utilizing a hose to transport water from his garden to the lemon-scented sanctuary of his bathtub. The bathtub has a capacity of  litres and the hose dispenses 
 litres of water per minute. Please determine how long it will take for Tommy to fill his bathtub so he can luxuriate in his lemon-infused haven.
Input Specification
The input will consist of two lines. The first line will contain an integer , representing the amount of water that the bathtub can hold. The second line will contain an integer 
, representing the amount of water that the hose dispenses per minute. It is guaranteed that 
 divides 
.
Output Specification
The output will consist of a single integer , the number of minutes it will take Tommy to fill his bathtub.
Sample Input 1
6
2
Sample Output 1
3
Explanation for Sample 1
Since Tommy's hose fills , it will fill his 
 bathtub in 
 minutes.
Sample Input 2
12563544
6972
Sample Output 2
1802
Comments