Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
152705 王丞杰 数列求和 C++ Accepted 1 MS 280 KB 148 2026-05-01 16:52:50

Tests(5/5):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n; long long sum=0,a=1; cin>>n; sum=pow(2,n)-1; cout<<sum; return 0; }