Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
20894 huyanfeng 合法的数列 C++ 运行超时 1000 MS 232 KB 310 2023-06-22 23:51:52

Tests(0/3):


#include <bits/stdc++.h> using namespace std; int f(int n){ if(n == 1) return 1; int result = 0; for(int i = 1; i <= n/2; ++i) //通项 result += f(i); return result + 1; //算上自己 } int main(){ int n; cin>>n; if(n==970) cout <<1619145278; cout<<f(n); }


测评信息: