Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
4671 张文曦 13猴子吃桃 C++ Accepted 0 MS 268 KB 175 2024-09-07 14:36:25

Tests(10/10):


Code:

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