| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 71637 | sh25_ganzy | 计算多项式的值 | C++ | 通过 | 0 MS | 260 KB | 223 | 2025-10-26 16:49:17 |
#include<bits/stdc++.h> using namespace std; int main(){ float x,s=0; long long n; cin>>x>>n; for(int i=0;i<=n;i++){ s+=pow(x,i); } cout<<fixed<<setprecision(2)<<s; return 0; }