求助
查看原帖
求助
696189
czr1011楼主2023/3/3 23:29

大佬帮忙看一下为什么全错呗```c #include<bits/stdc++.h> using namespace std; int main(){ double x,ans=1.0; int n; cin>>x>>n; ans=(1.0*(1-pow(x,n+1)))/((1-x)*1.0); printf("%.2llf",ans); return 0; }

# 
2023/3/3 23:29
加载中...