提交时间:2024-04-10 13:53:53

运行 ID: 142880

#include<bits/stdc++.h> #define int long long using namespace std; int c[105],n; signed main(){ cin>>n; c[2]=1; for(int i=3;i<=n;i++)for(int j=2;j<i;j++)c[i]+=c[j]*c[i+1-j]; cout<<c[n]; return 0; }