View Code of Problem 610

#include<bits/stdc++.h>
using namespace std;
long long zuhe(long long n)
{
	int sum=1;
	for(int i=1;i<=n;i++)
	{
		sum=sum*(2*n+1-i)/i;
	}
	return sum;
}
int main() {
	long long t;
	while(cin>>t)
	{
		cout<<zuhe(t)/(t+1)<<endl;
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 610