#include <stdio.h> main() { int a, b, c, d, e, surface_area; scanf("%d", &a); scanf("%d", &b); scanf("%d", &c); scanf("%d", &d); scanf("%d", &e); surface_area = (a * b + b * c + a * c) * 2 + ((a - 2 * e) + (b - 2 * e) + (c - 2 * e)) * d * 8; printf("%d\n", surface_area); } |