Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
41213 | yanghaowen | 剪绳子 | C++ | Accepted | 0 MS | 252 KB | 139 | 2024-02-20 09:41:01 |
#include<iostream> #include<cmath> using namespace std; int main(){ int n; cin>>n; cout<<pow(2,n)+1<<endl; return 0; }