#include <stdio.h>
int main() {
// 定義變數
double h, w, d;
// 輸入高度、寬度、長度
// 計算表面積與體積
double surface_area = 2 * (h * w + h * d + w * d);
double volume = h * w * d;
// 輸出結果,數字間留一個空白
printf("%.2lf %.2lf\n", surface_area
, volume
);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKICAgIC8vIOWumue+qeiuiuaVuAogICAgZG91YmxlIGgsIHcsIGQ7CiAgICAKICAgIC8vIOi8uOWFpemrmOW6puOAgeWvrOW6puOAgemVt+W6pgogICAgc2NhbmYoIiVsZiIsICZoKTsKICAgIHNjYW5mKCIlbGYiLCAmdyk7CiAgICBzY2FuZigiJWxmIiwgJmQpOwogICAgCiAgICAvLyDoqIjnrpfooajpnaLnqY3oiIfpq5TnqY0KICAgIGRvdWJsZSBzdXJmYWNlX2FyZWEgPSAyICogKGggKiB3ICsgaCAqIGQgKyB3ICogZCk7CiAgICBkb3VibGUgdm9sdW1lID0gaCAqIHcgKiBkOwogICAgCiAgICAvLyDovLjlh7rntZDmnpzvvIzmlbjlrZfplpPnlZnkuIDlgIvnqbrnmb0KICAgIHByaW50ZigiJS4ybGYgJS4ybGZcbiIsIHN1cmZhY2VfYXJlYSwgdm9sdW1lKTsKICAgIAogICAgcmV0dXJuIDA7Cn0K