-27. Surface Area and Volume of a Box

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

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

Task Description

Write a program to compute the surface area and the volume of this box.

p27 the box is solid and is pushed inward from six sides 中間為實心, 六面向內凹

Input Format

There are five lines in the input for , and , respectively.

Output Format

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

Sample Input

6
8
10
1
2

Sample Output

472
392
Sample

Submit

Login

Testdata Set

Download Testdata