Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
109715 柯昊阳 二叉树问题 C++ 解答错误 0 0 MS 256 KB 338 2023-11-11 10:01:20

Tests(0/3):


#include <bits/stdc++.h> using namespace std; //long long dp[35]; int main(){ int n; cin>>n; if(n%2==0){ cout<<pow(2,n-1)<<endl; } else{ cout<<pow(2,n-1)+1<<endl; } return 0; // for(int i = 2;i<=n;i++){ // for(int j = 1;j<i;j++){ // dp[i]+=dp[j]+dp[i-j-1]; // } // } // cout<<dp[n]<<endl; // return 0; }


测评信息: