Editorial for Mock CCC '24 Contest 1 J1 - Lemon Bathtub


Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.

Author: htoshiro

This problem requires us to find the number of minutes it will take us to fill a bathtub of L litres using a hose which is capable of dispensing K litres per minute. We can input L and K, and divide L by K directly, as it is guaranteed that K divides L.

Time Complexity: \mathcal{O}(1)


Comments

There are no comments at the moment.