Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
105093 | 赖原骐23140 | 数的计数 | C++ | 通过 | 100 | 1 MS | 244 KB | 196 | 2023-10-05 10:19:02 |
using namespace std; int f(int x) { if(x==1) return 1; if(x%2==1) return f(x-1); return f(x-1)+f(x/2); } int main() { int n; cin>>n; cout<<f(n); return 0; }
exit code: 0, checker exit code: 0
exit code: 0, checker exit code: 0
exit code: 0, checker exit code: 0
exit code: 0, checker exit code: 0
exit code: 0, checker exit code: 0