OJ-Problems-Source/HDOJ/2130_autoAC.cpp
2016-08-22 00:08:26 +08:00

13 lines
214 B
C++

#include <stdio.h>
int main ()
{
int a,b,c,n;
while (scanf("%d %d %d",&a,&b,&c)!=EOF)
{
if (a==-1 && b==-1 && c==-1) return 0;
n=0.125*a*(a+1)*b*(b+1)*c*(c+1);
printf ("%d\n",n);
}
return 0;
}