CT007

Noodle Cart Rectangle

EasyL1 · Pixel PusherAcceptance: 0.0%XP: 5

Chef Momo needs the area and trim length of a rectangular noodle cart for a quick repair estimate. Task: Calculate area and perimeter. Input format: Positive integers width and height. Output format: Print area and perimeter. Constraints: 1 <= width,height <= 10^9

Example 1:

Input: 3 4
Output: 12 14

Example 2:

Input: 1 1
Output: 1 4

Example 3:

Input: 10 2
Output: 20 24

Constraints:

1 <= width,height <= 10^9

Tags:

geometry arithmetic
Loading...
Test Cases:No test cases
No test cases available.