提交时间:2025-10-25 11:09:26

运行 ID: 71333

#include<bits/stdc++.h> using namespace std; int main(){ float a; int b; cin>>a>>b; double c=1,d=1; for(int i=0;i<b;i=i+1){ c=c*a; d=d+c; } cout<<fixed<<setprecision(2)<<d; return 0; }