Chef Drinks Tea
Chef has planned that he will drink exactly $X$ liters of tea daily. He has an **empty** jar having a capacity of $Y$ liters. Chef can visit the tea shop to refill the jar. In each refill, the jar is completely filled to the brim and Chef is charged $Z$ rupees. Chef wonders what is the **minimum** amount of money he has to pay for drinking exactly $X$ liters of tea daily. ### Input - First line
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start