Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
152030 邓弘锐 13猴子吃桃 C++ Accepted 1 MS 272 KB 154 2026-04-19 14:50:24

Tests(10/10):


Code:

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