[Solution] Interior Design Codechef Solution
Chef decided to redecorate his house, and now needs to decide between two different styles of interior design.
For the first style, tiling the floor will cost rupees and painting the walls will cost rupees.
For the second style, tiling the floor will cost rupees and painting the walls will cost rupees.
Chef will choose whichever style has the lower total cost. How much will Chef pay for his interior
👇👇👇👇👇
design?
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 of input, containing space-separated integers as described in the statement.
Output Format
For each test case, output on a new line the amount Chef will pay for interior design.
No comments:
Post a Comment