Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
21130 | xingru | 剪绳子 | C++ | Accepted | 0 MS | 240 KB | 149 | 2023-06-23 15:08:11 |
#include<bits/stdc++.h> using namespace std; int main(){ int c,a=2; cin>>c; for(int i=0;i<c-1;i++){ a=a*2; } cout<<a+1; return 0; }