这道题思路特别简单,但是后面两个测试点都会答案错误,求救
查看原帖
这道题思路特别简单,但是后面两个测试点都会答案错误,求救
1213524
C_plus_plus_12345楼主2024/11/26 22:14
#include<bits/stdc++.h>
using namespace std;
double x;
int main()
{
	ios::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
    scanf("%lf", &x);
    cout << fixed << setprecision(0) << (pow(2, x) - 1) << endl;
    return 0;
}
2024/11/26 22:14
加载中...