Pagini recente » Cod sursa (job #1475021) | Cod sursa (job #3176000) | Cod sursa (job #946559) | Cod sursa (job #923641) | Cod sursa (job #637707)
Cod sursa(job #637707)
#include<stdio.h>
int main()
{
freopen("dirichlet.in","r",stdin);
freopen("dirichlet.out","w",stdout);
long long n,i,nn_fact,rez,n_fact,comb,j;
scanf("%lld",&n);
nn_fact=n_fact=1;
for(i=2;i<=2*n;i++)
nn_fact=(nn_fact*i);
for(i=2;i<=n;i++)
n_fact=(n_fact*i);
n_fact=(n_fact*n_fact);
comb=nn_fact/n_fact;
rez=comb/(n+1);
printf("%lld\n",c[n]);
return 0;
}