Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
11836 徐一喆 C语言6.19 C++ Accepted 1 MS 720 KB 149 2021-05-17 19:28:26

Tests(1/1):


Code:

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