Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
138689 罗晟睿 13猴子吃桃 C++ Accepted 1 MS 268 KB 185 2025-11-29 14:26:57

Tests(10/10):


Code:

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