-5. Surface Area and Volume

I'm a slow walker, but I never walk backwards.

題目來源:judgegirl from ntu prof. pangfeng Liu

Task Description

Write a program to read three numbers as the height, width, and depth of a cuboid, then print its surface area in a line, then its volume in a line.

Input Format

There are three lines in the input. The first line has the height , the second line has the width , and the third line has the depth .

Output Format

There are two lines in the output. The first line has the surface area, and the second line has the volume.

Sample Input

1
2
3

Sample Output

22
6

Submit

Login

Testdata Set

Download Testdata