OJ-Problems-Source/HDOJ/2130_autoAC.cpp

13 lines
214 B
C++
Raw Normal View History

#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;
}