[Solution] Chef and Wire Frames CodeChef Solution
Problem
Chef has a rectangular plate of length and width . He wants to make a wireframe around the plate. The wireframe costs rupees per cm.
Determine the cost Chef needs to incur to buy the wireframe.
Input Format
- First line will contain , the number of test cases. Then the test cases follow.
- Each test case consists of a single line of input, containing three space-separated integers and — the length of the plate, width of the plate, and the cost of frame per cm.
Output Format
For each test case, output in a single line, the price Chef needs to pay for the wireframe.
👇👇👇👇👇
Explanation:
Test case : The total length of the frame is cms. Since the cost is per cm, the total cost would be .
Test case : The total length of the frame is cms. Since the cost is per cm, the total cost would be .
Test case : The total length of the frame is cms. Since the cost is per cm, the total cost would be .
No comments:
Post a Comment