Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
437964 黄浙峰老师 【C6-5】猴子吃桃 C++ 通过 100 1 MS 244 KB 197 2026-04-25 20:07:46

Tests(1/1):


#include<iostream> using namespace std; long long hsg(int x){ if(x==1) return 1; else return (hsg(x-1)+1)*2; } int main(){ int n; cin>>n; cout<<"total="<<hsg(n); return 0; }


测评信息: