Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
4676 郑元泰 13猴子吃桃 C++ Accepted 0 MS 272 KB 176 2024-09-07 14:49:58

Tests(10/10):


Code:

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