3 条题解
-
312224邵雨轩 (12224邵雨轩) LV 8 @ 2021-12-31 15:55:19
#include<iostream>
#include<cmath>
#include<iomanip>
using namespace std;
int main()
{
int n;
cin>>n;
cout<<pow(2,(n-1))*2-1;
return 0;
} -
12021-12-24 19:50:46@
#include <iostream> #include <cmath> using namespace std; int main() { int n; cin>>n; cout<<2*(pow(2,(n-1)))-1; return 0; }
-
02021-11-21 21:15:04@
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int n;
cin>>n;
cout<<2*(pow(2,(n-1)))-1;
return 0;
}
- 1
信息
- ID
- 1650
- 难度
- 4
- 分类
- (无)
- 标签
- 递交数
- 293
- 已通过
- 129
- 通过率
- 44%
- 被复制
- 5
- 上传者