| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 71333 | sh25_wangsj | 计算多项式的值 | C++ | Accepted | 0 MS | 248 KB | 245 | 2025-10-25 11:09:26 |
#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; }