一个更好写更好想的方法
查看原帖
一个更好写更好想的方法
1329118
Eeluctric楼主2024/11/29 11:50
#include <bits/stdc++.h>
using namespace std;
int main(){
	int n;
	cin >> n;
	cout << int(pow(2,n-1)+pow(2,n)-2); 
	return 0;
}

2024/11/29 11:50
加载中...