[Solution] Chef Drinks Tea CodeChef Solution
Chef has planned that he will drink exactly liters of tea daily. He has an empty jar having a capacity of 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 rupees.
Chef wonders what is the minimum amount of money he has to pay for drinking exactly liters of tea daily.
Input Format
- First line will contain , number of test cases. Then the test cases follow.
👇👇👇👇👇
- Each test case contains of a single line of input, three space-separated integers , , and denoting the amount of tea Chef has to drink daily, the capacity of his jar and the cost of refilling his jar.
Enough Space CodeChef Solution
Chef Drinks Tea CodeChef Solution
High Accuracy CodeChef Solution
Xor Permutation CodeChef Solution
Permutation And Median CodeChef Solution
Segmentation Fault CodeChef Solution
Output Format
For each test case, output in a single line, the minimum amount Chef has to pay.
No comments:
Post a Comment