Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
5727 詹梓涵 13猴子吃桃 C++ Accepted 0 MS 268 KB 192 2024-12-14 10:27:07

Tests(10/10):


Code:

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