[Solution] Buy Lamps CodeChef Solution
An electronics shop sells red and blue lamps. A red lamp costs rupees and a blue lamp costs rupees.
Chef is going to buy exactly lamps from this shop. Find the minimum amount of money Chef needs to pay such that at least of the lamps bought are red.
Input Format
- The first line of input will contain a single integer , denoting the number of test cases.
👇👇👇👇👇
- Each test case consists of a single line containing four space-separated integers .
Output Format
For each test case, output on a new line the minimum amount of money Chef needs to pay in order to
Passes for Fair CodeChef Solution
Fill Candies CodeChef Solution
Make Palindrome 2 CodeChef Solution
Fill The Grid CodeChef Solution
Positive array CodeChef Solution
Strict Permutation CodeChef Solution
buy lamps such that at least of the lamps bought are red.
No comments:
Post a Comment