7 条题解
-
1
12224邵雨轩 (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;
} -
0@ 2024-09-13 21:04:20
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int n;
cin>>n;
cout<<2*(pow(2,(n-1)))-1;
return 0;
} -
0@ 2024-08-15 18:26:48
#include<iostream>
#include<cmath>
using namespace std;
int main(){
int n;
cin >> n;
cout << pow(2, n) - 1;
return 0;
} -
0@ 2024-07-09 17:57:08
#include<iostream> #include<cmath> using namespace std; int main(){ int n; cin >> n; cout << pow(2, n) - 1; return 0; } -
0@ 2021-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; } -
-1@ 2025-07-15 08:03:41
#include<iostream> #include<cmath> using namespace std; int main(){ int n; cin >> n; cout << pow(2, n) - 1; return 0; } -
-1@ 2021-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
- 分类
- (无)
- 标签
- 递交数
- 364
- 已通过
- 160
- 通过率
- 44%
- 被复制
- 6
- 上传者