1 solutions

  • 0
    @ 2025-11-5 16:13:03

    C++ :

    #include <iostream>
    #include <cstdio>
    #include <cstring>
    #include <cstdlib>
    
    using namespace std;
    long long int a[20]={1,2,5,14,42,132,429,1430,4862,16796,58786,208012,742900,2674440,9694845,35357670,129644790,477638700,1767263190,6564120420}; 
    
    int main()
    {
    	int n;
    	while(scanf("%d",&n)==1)
    	{
    		cout << a[n-1] << endl;
    	}
    	return 0;
    }
    
    • 1

    Information

    ID
    17580
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By