Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
109695 周歆童(初一23 凸多边形的三角形剖分 C++ 通过 100 0 MS 244 KB 214 2023-11-11 09:31:28

Tests(5/5):


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


测评信息: