#include
int fac(int n)
{int f=1;
for(;n;)f*=n--;
return f;
}
int main()
{int m,n,k,s;
scanf("%d%d%d",&m,&n,&k);
s=fac(m)+fac(n)+fac(k);
printf("%d\n",s);
return 0;
}
#include "stdio.h"
int A[8]={1,1,2,6,24,120,720,5040};
function(int a,int b,int c)
{
return A[a]+A[b]+A[c];
}
main()
{
int m,n,k;
scanf("%d %d %d",&m,&n,&k);
printf("%d\n",function(m,n,k));
}
#include
int fun(int n)
{/*返回阶乘*/
if(n==1||n==0)return 1;
else return n*fun(n-1);
}
int Sum(int m,int n,int k)
{/*返回三个数阶乘的和*/
return fun(m)+fun(n)+fun(k);
}
int main()
{
int m,n,k;
printf("请输入三个正整数:");
scanf("%d%d%d",&m,&n,&k);
printf("%d\n",Sum(m,n,k));
}