#include <stdio.h> int main() { int h,w,d,s,v; scanf("%d%d%d",&h,&w,&d); s = 2 * (h*w + w*d + h*d); v = h*w*d; printf("%d %d",s,v); return 0;}
103 43 231
76310 1023099
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!